X-Spam-Check-By: sourceware.org Message-ID: <4697C20E.7050108@bonhard.uklinux.net> Date: Fri, 13 Jul 2007 19:18:54 +0100 From: fergus User-Agent: Thunderbird 2.0.0.4 (Windows/20070604) MIME-Version: 1.0 To: Cygwin ML CC: fergus Subject: Re: if [ -w branching: how to spot a locked USB stick Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com > 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/