This is the mail archive of the
cygwin-patches@cygwin.com
mailing list for the Cygwin project.
Patch to syscalls.cc for statfs/df problem
- To: "cygwin-patches at sources dot redhat dot com" <cygwin-patches at sources dot redhat dot com>
- Subject: Patch to syscalls.cc for statfs/df problem
- From: Mark Paulus <mark dot paulus at wcom dot com>
- Date: Fri, 09 Mar 2001 13:52:07 -0700
- Reply-to: Mark Paulus <mark dot paulus at wcom dot com>
Enclosed is a patch to syscalls.cc which enables the use of
the GetDiskFreeSpaceEx call in statfs(). It seems to work
in my environment, except for one small problem. It appears
that under WinME, it does not recognize the free space of
network mounted drives that have over 2GB of free space:
e.g.
in dos:
net use j: \\server\use
in cygwin:
mount j:/ /jdrive
if you then do a df, and J: has more than 2GB free, then
it will show:
Filesystem 1k-blocks Used Available Use% Mounted on
j: 2097120 0 2097120 0% /jdrive
However, from the testing I have been able to do, it appears
this is a failure of the GetDiskFreeSpaceEx call...
syscalls.cc-patch
ChangeLog