This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Why does df fail to stat CIFS shares?


On Aug 28 14:58, Achim Gratz wrote:
> Corinna Vinschen <corinna-cygwin <at> cygwin.com> writes:
> > >
> [...]
> 
> The patch with the fallback to FileFsSizeInformation works as expected.
> 
> > > > Btw., one other hare-brained idea would be if the Netapp FS has a
> > > > somewhat different idea of the size of FILE_FS_FULL_SIZE_INFORMATION,
> > > > maybe due to a misunderstanding in alignment.  What you could try is
> > > > to make full_fsi a pointer:
> 
> The FileFsFullSizeInformation path still fails with the same error code even
> with these changes (I've added a few debug_printf to show the results even
> in the case of success):
> 
>    31 3473313 [main] df 28752 statvfs: (/home/gratz, 0x28A864),
> file_attributes 48
>  1186 3474499 [main] df 28752 fhandler_disk_file::fstatvfs: 0xC000000D =
> NtQueryVolumeInformationFile(\??\H:\GNU, FileFsFullSizeInformation)
>   479 3474978 [main] df 28752 fhandler_disk_file::fstatvfs: 0x0 =
> NtQueryVolumeInformationFile(\??\H:\GNU, FileFsSizeInformation)
>  1709 3476687 [main] df 28752 fhandler_disk_file::fstatvfs: 0 =
> fstatvfs(/home/gratz, 0x28A864)
>    34 3476721 [main] df 28752 statvfs: 0 = statvfs(/home/gratz,0x28A864)

#$%@ netapp #@$%


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

Attachment: pgpHgpy32pZ2g.pgp
Description: PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]