From: Earnie B. <ea...@us...> - 2005-07-02 23:52:50
|
Update of /cvsroot/mingw/msys/rt/src/winsup/cygwin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28741 Modified Files: ChangeLog.MSYS syscalls.cc Log Message: 2005.07.02 Max T. Woodbury <mt...@us...> * syscalls.cc (statfs): Allow for bigger disks. Index: syscalls.cc =================================================================== RCS file: /cvsroot/mingw/msys/rt/src/winsup/cygwin/syscalls.cc,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** syscalls.cc 3 May 2005 22:30:50 -0000 1.11 --- syscalls.cc 2 Jul 2005 23:52:42 -0000 1.12 *************** *** 1875,1878 **** --- 1875,1887 ---- } + _ULARGE_INTEGER fba, tnb, tfa; + + if (!GetDiskFreeSpaceEx (root, &fba, &tnb, &tfa)) + { + fba.QuadPart = (unsigned long long)freec * spc * bps; + tnb.QuadPart = (unsigned long long)totalc * spc * bps; + tfa.QuadPart = (unsigned long long)freec * spc * bps; + } + DWORD vsn, maxlen, flags; *************** *** 1884,1889 **** sfs->f_type = flags; sfs->f_bsize = spc*bps; ! sfs->f_blocks = totalc; ! sfs->f_bfree = sfs->f_bavail = freec; sfs->f_files = -1; sfs->f_ffree = -1; --- 1893,1899 ---- sfs->f_type = flags; sfs->f_bsize = spc*bps; ! sfs->f_blocks = tnb.QuadPart / sfs->f_bsize; ! sfs->f_bavail = fba.QuadPart / sfs->f_bsize; ! sfs->f_bfree = tfa.QuadPart / sfs->f_bsize; sfs->f_files = -1; sfs->f_ffree = -1; Index: ChangeLog.MSYS =================================================================== RCS file: /cvsroot/mingw/msys/rt/src/winsup/cygwin/ChangeLog.MSYS,v retrieving revision 1.78 retrieving revision 1.79 diff -C2 -d -r1.78 -r1.79 *** ChangeLog.MSYS 13 May 2005 15:05:45 -0000 1.78 --- ChangeLog.MSYS 2 Jul 2005 23:52:41 -0000 1.79 *************** *** 1,2 **** --- 1,6 ---- + 2005.07.02 Max T. Woodbury <mt...@us...> + + * syscalls.cc (statfs): Allow for bigger disks. + 2005.05.13 Earnie Boyd <ea...@us...> |