Distribution:Gentoo Linux Hardware Environment:kingston usb dongle with ro switch Software Environment: Problem Description:i have nice kingston usb dongle. it has write protected switch. in 2.4 kernel usb storage could detect that dongle is write protected, printk it and return error on writing request. but 2.6 does not detect it, so it does not know about ro switch. it allows to write, what ends with many `lost page` errors and call trace. it is ugly. ro switch should be detected like it was in 2.4 and futher writing should be disalowed. Steps to reproduce: trying to write to some hardware write protected usb dongle will resulyt in this error
rebuild your 2.6 kernel with USB Mass Storage Verbose Debugging enabled and send the logs that it generates showing the r/o detection for analysis.
Created attachment 2726 [details] Patch for usb-storage write-protection detect Please try this patch, intended for 2.6.6-rc2 or later. It enables MODE SENSE with page=0x3f on USB mass storage devices. That's what the SCSI disk driver uses to determine whether the device is write-protected.
Created attachment 2932 [details] Test patch Here is an updated patch -- please try this.
four weeks without response. closing.