Patch to syscalls.cc for statfs/df problem

Mark Paulus mark.paulus@wcom.com
Fri Mar 9 12:55:00 GMT 2001


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...




-------------- next part --------------
Fri Mar 09 13:36:00 2001  Mark Paulus <mark.paulus@wcom.com>

	* syscalls.cc (statfs): added call to GetDiskFreeSpaceEx().

	* syscalls.cc : added CVS Keywords.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: syscalls.cc-patch
Type: text/x-diff
Size: 2132 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20010309/2bd3ec1d/attachment.bin>


More information about the Cygwin-patches mailing list