partition size incorrectly reported

Eric Blake ebb9@byu.net
Wed Mar 8 13:16:00 GMT 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Corinna Vinschen on 3/8/2006 5:55 AM:
>> Filesystem            Size  Used Avail Use% Mounted on
>> f:\cygwin\bin         500M  -64Z     0 100% /usr/bin
                               ^^^^
The display of negative disk usage (64-bit wraparound) is already fixed in
coreutils CVS, and stems from the fact that the OS is reporting more
available than total blocks in statfs/statvfs.  I'm a bit surprised that
it wasn't backported to coreutils 5.94, since the patch was made to CVS
head before 5.94 was released, but oh well (I'll see whether it is easy to
backport myself when I roll coreutils-5.94-5 after cygwin 1.5.20 comes out).

> Looks like you have quotas activated on drive f:
> 
> Cygwin can nothing do about that.  Maybe df can by taking quotas into
> account.  Eric?

Not really.  SUSv3/POSIX specify df without allowing it to take quotas
into account - so it is really space available on the file system, not
space available to the current user within the file system.  However, you
may want to propose a GNU extension that adds a new option to df which
takes quotas into account; if so, raise the question on the
bug-coreutils<AT>gnu<DOT>org mailing list.  But remember that reading disk
quotas isn't very portable, so it may be a difficult task to actually
provide a worthwhile patch along those lines.

- --
Life is short - so eat dessert first!

Eric Blake             ebb9@byu.net
volunteer cygwin coreutils maintainer
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEDtkD84KuGfSFAYARAh+uAKCwUM7RkTQfAa5Gep3wRCTo7qrt7ACaA2KZ
r+/DUuNbpoKM4TEHPMU5XDI=
=qeXN
-----END PGP SIGNATURE-----

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list