This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: csih: Patch getVolInfo.c
- From: Charles Wilson <cygwin at cwilson dot fastmail dot fm>
- To: cygwin at cygwin dot com
- Date: Sat, 01 Aug 2009 16:58:56 -0400
- Subject: Re: csih: Patch getVolInfo.c
- References: <20090722185402.GS27613@calimero.vinschen.de> <20090723083844.GY27613@calimero.vinschen.de> <4A6903B4.4070003@cwilson.fastmail.fm>
Charles Wilson wrote:
>>> The same patch should go into getVolInfo in csih. Patch below.
>> New patch below.
>>
>> * cygwin/getVolInfo.c: Check ZwOpenFile status code for
>> STATUS_INVALID_PARAMETER and retry top open with FILE_READ_DATA
>> access. Simply STATUS_NO_MEDIA_IN_DEVICE condition.
>
> Thanks. I'll roll a new release this weekend (for cygwin-1.7 only).
Applied with minor changes (getVolInfo doesn't use the same variable
names as the cygwin internal implementation).
line 90:
- status = NtOpenFile (&vol, FILE_READ_DATA, &attr, &io,
+ stat = NtOpenFile (&h, FILE_READ_DATA, &attr, &io,
csih-0.9.1 should be hitting the mirrors soon.
--
Chuck
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple