This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Why does df fail to stat CIFS shares?
- From: Achim Gratz <Stromeko at NexGo dot DE>
- To: cygwin at cygwin dot com
- Date: Thu, 28 Aug 2014 14:58:14 +0000 (UTC)
- Subject: Re: Why does df fail to stat CIFS shares?
- Authentication-results: sourceware.org; auth=none
- References: <20140627143626 dot GA9220 at F1S712WWS> <20140703094152 dot GB1803 at calimero dot vinschen dot de> <loom dot 20140826T110928-929 at post dot gmane dot org> <20140826124557 dot GB5740 at calimero dot vinschen dot de> <loom dot 20140827T165747-369 at post dot gmane dot org> <20140827151536 dot GK20700 at calimero dot vinschen dot de> <20140827153700 dot GL20700 at calimero dot vinschen dot de> <loom dot 20140827T181656-215 at post dot gmane dot org> <20140827170421 dot GM20700 at calimero dot vinschen dot de>
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)
Regards,
Achim.
--
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