Re: csih: Patch getVolInfo.c

2009-08-01 Thread Charles Wilson
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

Re: csih: Patch getVolInfo.c

2009-07-24 Thread Corinna Vinschen
On Jul 23 20:43, Charles Wilson wrote: > Corinna Vinschen 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_

Re: csih: Patch getVolInfo.c

2009-07-23 Thread Charles Wilson
Corinna Vinschen 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_DEV

Re: csih: Patch getVolInfo.c

2009-07-23 Thread Corinna Vinschen
On Jul 22 20:54, Corinna Vinschen wrote: > Hi Chuck, > > today I found a filesystem, HGFS, which is sensible against using just > the READ_CONTROL flag in calls to NtOpenFile. The result is a > STATUS_INVALID_PARAMETER status code. > > However, for access to the filesystem information, the READ_

Re: csih: Patch getVolInfo.c

2009-07-23 Thread Corinna Vinschen
On Jul 23 10:03, Corinna Vinschen wrote: > On Jul 22 19:54, Eric Blake wrote: > > Corinna Vinschen cygwin.com> writes: > > > > > > However, for access to the filesystem information, the READ_CONTROL > > > > isn't necessary. A desired access of 0 is sufficient in every case > > > > I could lay my

Re: csih: Patch getVolInfo.c

2009-07-23 Thread Corinna Vinschen
On Jul 22 19:54, Eric Blake wrote: > Corinna Vinschen cygwin.com> writes: > > > > However, for access to the filesystem information, the READ_CONTROL > > > isn't necessary. A desired access of 0 is sufficient in every case > > > I could lay my hands on (NTFS, NFS, Samba, FAT32, HGFS). > > > > >

Re: csih: Patch getVolInfo.c

2009-07-22 Thread Eric Blake
Corinna Vinschen cygwin.com> writes: > > However, for access to the filesystem information, the READ_CONTROL > > isn't necessary. A desired access of 0 is sufficient in every case > > I could lay my hands on (NTFS, NFS, Samba, FAT32, HGFS). > > > along these lines, can you please test the chang

Re: csih: Patch getVolInfo.c

2009-07-22 Thread Corinna Vinschen
Eric, On Jul 22 20:54, Corinna Vinschen wrote: > Hi Chuck, > > today I found a filesystem, HGFS, which is sensible against using just > the READ_CONTROL flag in calls to NtOpenFile. The result is a > STATUS_INVALID_PARAMETER status code. > > However, for access to the filesystem information, th

csih: Patch getVolInfo.c

2009-07-22 Thread Corinna Vinschen
Hi Chuck, today I found a filesystem, HGFS, which is sensible against using just the READ_CONTROL flag in calls to NtOpenFile. The result is a STATUS_INVALID_PARAMETER status code. However, for access to the filesystem information, the READ_CONTROL isn't necessary. A desired access of 0 is suff