Hallo!

With Kernel 2.6.1 and higher, when I mount a file system from a write protected
USB mass-storage device, the file system will be mounted READ/WRITE (RW)
instead of READ ONLY (RO).


With Kernel 2.6.0 this was not a problem, the file system was mounted RO.

In the file drivers/usb/storage/scsiglue.c of Kernels 2.6.1, 2.6.2 and
2.6.3-rc1 I found the following lines:

       /* modify scsi_device bits on probe */
       .flags = (BLIST_MS_SKIP_PAGE_08 | BLIST_MS_SKIP_PAGE_3F |
                 BLIST_USE_10_BYTE_MS),

I changed this to:

       /* modify scsi_device bits on probe */
       .flags = (BLIST_MS_SKIP_PAGE_08 | BLIST_USE_10_BYTE_MS),

Now a write protected file system will be mounted RO, as it should be.
Only on a write protected device, of course.

I have tested this with an FUJITSU DynaMO 640 Pocket (USB 1.1),

http://www.fujitsu.com/services/computing/storage/mo/dynamo640pocket/

an Transcend 128MB JetFlash USB stick (USB 1.1),
an no name 128MB USB stick (USB 1.1) and
an ADTEC 256MB AD-UDSW USB stick (USB 2.0).


Best regards


Jürgen Heinrich


------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to