This is the mail archive of the cygwin-patches@cygwin.com 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]

Patch to syscalls.cc for statfs/df problem


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


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