Date: Wed, 11 Mar 1998 08:50:02 -0800 (PST) From: Martin Cracauer <cracauer@cons.org> To: freebsd-bugs Subject: Re: bin/5870: df(1) gives values over 100% Message-ID: <199803111650.IAA07030@hub.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/5870; it has been noted by GNATS. From: Martin Cracauer <cracauer@cons.org> To: toasty@dragondata.com Cc: FreeBSD-gnats-submit@FreeBSD.ORG Subject: Re: bin/5870: df(1) gives values over 100% Date: Wed, 11 Mar 1998 17:40:28 +0100 In <199802271939.NAA19436@home.dragondata.com>, toasty@dragondata.com wrote: [...] > Filesystem 1K-blocks Used Avail Capacity iused ifree %iused Mounted on > /dev/wd0a 127023 19946 96916 17% 1256 30486 4% / > /dev/wd0s1h 347295 42755 276757 13% 1494 85800 2% /userland > /dev/wd0s1g 63503 759 57664 1% 145 15725 1% /userland/var > /dev/wd0s1d 2991318 169969 2582044 6% 18308 729530 2% /userland/home > /dev/wd0s1f 198399 196536 -14008 108% 50174 0 100% /usr > /dev/wd0s1e 127023 1469 115393 1% 195 31547 1% /var > procfs 4 4 0 100% 29 4087 1% /proc > procfs 4 4 0 100% 29 4087 1% /userland/proc > > Somehow, 198399 - 196536 is ending up a negative number. You did not take into account that a certain amount of filesystem space (by default 10%) is reserved to be used only by root. If you look at the other lines, you'll notice that User+Avail != 1k-blocks. "Avail" is what is available for non-root users. Hope this helps Martin -- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Martin Cracauer <cracauer@cons.org> http://www.cons.org/cracauer/ BSD User Group Hamburg/Germany http://www.bsdhh.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199803111650.IAA07030>