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?

Corinna Vinschen <corinna-cygwin <at>> 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)


Problem reports:
Unsubscribe info:

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