From owner-freebsd-hackers Tue Nov 30 3:39:56 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from smtp1.vnet.net (smtp1.vnet.net [166.82.1.31]) by hub.freebsd.org (Postfix) with ESMTP id 8D7F514CFC for ; Tue, 30 Nov 1999 03:39:53 -0800 (PST) (envelope-from rivers@dignus.com) Received: from dignus.com (ponds.vnet.net [166.82.177.48]) by smtp1.vnet.net (8.9.1a/8.9.1) with ESMTP id GAA06248; Tue, 30 Nov 1999 06:39:33 -0500 (EST) Received: from lakes.dignus.com (lakes.dignus.com [10.0.0.3]) by dignus.com (8.9.2/8.8.5) with ESMTP id GAA25539; Tue, 30 Nov 1999 06:39:32 -0500 (EST) Received: (from rivers@localhost) by lakes.dignus.com (8.9.3/8.6.9) id GAA69471; Tue, 30 Nov 1999 06:39:32 -0500 (EST) Date: Tue, 30 Nov 1999 06:39:32 -0500 (EST) From: Thomas David Rivers Message-Id: <199911301139.GAA69471@lakes.dignus.com> To: imp@village.org, syssgm@detir.qld.gov.au Subject: Re: Human readable df Cc: freebsd-hackers@FreeBSD.ORG, matt@csis.gvsu.edu In-Reply-To: <199911300958.TAA16931@nymph.detir.qld.gov.au> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Stephen McKay write > > On Tuesday, 30th November 1999, Warner Losh wrote: > > > Filesystem Size Used Avail Capacity Mounted on > > /dev/da0s1a 62.0M 31.0M 26.1M 54% / > > /dev/da0s1e 192M 167M 9.22M 95% /usr > > /dev/da0s1d 61.4M 11.3M 45.2M 20% /var > > /dev/da0s1f 288M 247M 18.4M 93% /usr/local > > /dev/da0s1g 2.17G 1.88G 122M 94% /home > > procfs 4.00K 4.00K 0B 100% /proc > > /dev/sd1a 990M 376M 534M 41% /jaz > > /dev/da2s4c 1.94G 1.72G 68.0M 96% /hawk > > /dev/da3s4a 3.93G 1.95G 1.67G 54% /u > > Add a 'df -h' if you like, but to me this looks like an unreadable jumble > of letters and digits. Which adds to my logic of not putting this in df itself, there will always be someone (for many valid reasons) that wants something else. I'd suggest going the dfspace route - then users have an example of something that parses the df output & they can choose for themselves. I just checked on the Solaris box here, /etc/dfspace isn't there... I know it was there on my old ISC 3.2 box; and I recall making it work on FreeBSD. But, it was copyright AT&T, so I simply can't post it. The way it works is to (honoring the block size correctly) skip the first few lines of df (the normal heading) and then grab all the following `table' if you will. With that information in hand, it can format things anyway it needed. - Dave Rivers - To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message