At 10:25 PM 9/1/2005, Alan Stern wrote:
On Sun, 9 Jan 2005, Boris Dinkevich wrote:
> Hello everyone, > *snip* > Is it me doing something wrong ?
I don't know. Exactly what are you doing?
Loading file_storage gadget on 2.4.26 kernel with removable set. Formating in windows xp (sp2) Connecting to 2.4.24 kernel and getting partition read errors..
(Also, if I use fdisk/mkfs on linux to create two partitions with vfat, windows reads only the first)
> PS. FileStorage Gadget in linux, when operating as removable, does not give
> sense MEDIA_CHANGED (0x28)
> but rather just returns no sense to indicate that there is medium in
> device.
That's not true either. After you change the medium by writing to the attribute file, the gadget returns Sense Key = 0x06, ASC = 0x28, ASCQ = 0x00 to the next command.
By default, when a device with removable media is attached to a host,
does the host assume there is media inside if "Get Sense" returns no sense data ?
(or should it poll until 0x28 comes ?)
Alan Stern
Thanks,
Boris
------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ [email protected] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
