On Mon, 2 May 2005, Marco Schramel wrote:

> Hi all,
> 
> our system runs with kernel 2.4.25 and we use some usb-sticks for memory 
> storage. It works fine, but in some cases i ve to know whether the stick is 
> write protected.
> On our usb sticks there are a jumper to protect it from write. This jumper is 
> reflected from the usb storage controller.
> But how can i read out this ? 
> Are there any interfaces ?

I don't know of any such API, but you could try asking on the Linux SCSI 
mailing list.

There's always the old try-it-and-see approach: Open the device file for 
writing and see if the open call succeeds.

Alan Stern



-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to