X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-3.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: sourceware.org Message-ID: <4A74AC90.3080507@cwilson.fastmail.fm> Date: Sat, 01 Aug 2009 16:58:56 -0400 From: Charles Wilson User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.22) Gecko/20090605 Thunderbird/2.0.0.22 Mnenhy/0.7.6.666 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: csih: Patch getVolInfo.c References: <20090722185402 DOT GS27613 AT calimero DOT vinschen DOT de> <20090723083844 DOT GY27613 AT calimero DOT vinschen DOT de> <4A6903B4 DOT 4070003 AT cwilson DOT fastmail DOT fm> In-Reply-To: <4A6903B4.4070003@cwilson.fastmail.fm> Content-Type: text/plain; charset=ISO-8859-1 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 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