Re: [usb-storage] [PATCH] Another SanDisk USB stick with a cdrom scsi lun

Matthew Dharm <[email protected]> Fri, 30 Nov 2007 17:58:26 -0800
Newsgroups gmane.linux.usb.user
Organization One Eyed Alien Networks
Message-ID <[email protected]>
--===============0915259801==
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature"; boundary="sdJFN6SSISdF2ksn"
Content-Disposition: inline


--sdJFN6SSISdF2ksn
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Fri, Nov 30, 2007 at 08:40:42PM -0500, Kyle McMartin wrote:
> On Fri, Nov 30, 2007 at 05:14:42PM -0800, Greg KH wrote:
> > I agree with Matt, this should not be done in the kernel.  If you don't
> > like seeing the additional LUN, which is really present in the device,
> > do something in HAL or your window manager.  That kind of "policy"
> > should not be in the usb-storage driver.
> >=20
> > If anyone has the git id for the current U3 patch, I'll be glad to
> > revert it.
> >=20
>=20
> 67fa10627ec0d8aa16f1cf38cf527e67d8097d3c, but only the second hunk.
> fwiw, there's a pile more that do this single lun trick. also, might as
> well remove the FL_IGNORE_DEVICE from the usb wireless drivers listed,
> since userspace can fix them up too.

I don't think that's true for all of them.  IIRC, IGNORE_DEVICE was created
because there was a device that looked like a CD-ROM only, then when
"ejected" in a manner which we couldn't make work from userspace,
re-enumerated as a wireless device.

In other words, the cd-rom emulation didn't work with linux, and we
couldn't figure out why.

In this case, the cd-rom emulation DOES work.

Matt

--=20
Matthew Dharm                              Home: mdharm-usb@one-eyed-alien.=
net=20
Maintainer, Linux USB Mass Storage Driver

SP: I sell software for Microsoft.  Can you set me free?
DP: Natural Selection says I shouldn't.
					-- MS Salesman and Dust Puppy
User Friendly, 4/2/1998

--sdJFN6SSISdF2ksn
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)

iD8DBQFHUL/CHL9iwnUZqnkRApnTAKCXmo97ndVv0GtIHyheBf0JGZ+c9gCbBfD8
jER9F86T5hSp5i8gIMS7g84=
=yZ/9
-----END PGP SIGNATURE-----

--sdJFN6SSISdF2ksn--


--===============0915259801==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
--===============0915259801==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users

--===============0915259801==--