This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: if [ -w branching: how to spot a locked USB stick
- From: fergus <fergus at bonhard dot uklinux dot net>
- To: Cygwin ML <cygwin at cygwin dot com>
- Cc: fergus <fergus at bonhard dot uklinux dot net>
- Date: Fri, 13 Jul 2007 19:18:54 +0100
- Subject: Re: if [ -w branching: how to spot a locked USB stick
> Actually I found that there's a laughable simple way to
> determine a read-only device. When calling
> GetVolumeInformation, the FILE_READ_ONLY_VOLUME flag is
> set. I just tested this with a USB stick. Since we have
> the information from fs_info anyway, a fix should be very
> simple and not affect Cygwin's spee^Wslowness.
I'm so impressed; and looking forward to implementation of the fix.
(If that's what will happen.)
Another rewarding dialogue. Thank you.
Fergus
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/