Date: 08 Jul 2000 02:10:11 +0200 From: Cyrille Lefevre <clefevre@no-spam.citeweb.net> To: Paul Herman <pherman@frenchfries.net> Cc: Bill Fumerola <billf@chimesnet.com>, Sheldon Hearn <sheldonh@uunet.co.za>, freebsd-bugs@FreeBSD.ORG, current@FreeBSD.ORG Subject: Re: bin/19635: add -c for grand total to df(1), like du(1) does Message-ID: <sntlcwik.fsf@pc166.gits.fr> In-Reply-To: Paul Herman's message of "Fri, 7 Jul 2000 01:33:12 %2B0200 (CEST)" References: <Pine.BSF.4.21.0007070010190.4627-100000@bagabeedaboo.security.at12.de>
next in thread | previous in thread | raw e-mail | index | archive | help
Paul Herman <pherman@frenchfries.net> writes: > On Thu, 6 Jul 2000, Bill Fumerola wrote: > [snip] > Filesystem 1K-blocks Used Avail Capacity Mounted on > /dev/ad0s2a 446503 30922 379861 8% / > /dev/ad0s9e 1453615 758910 578416 57% /usr > /dev/ad0s9f 968983 357403 534062 40% /usr/local > /dev/ad0s9g 242239 9945 212915 4% /var > /dev/ad0s9h 2013515 1242447 609987 67% /u01 > procfs 4 4 0 100% /proc > Heh? What's this? 242239 9945 212915 4% /mnt > total 1581144 505684 995140 34% /mnt2 > total 1391380 414168 906528 31% /mnt3 > bash-2.03# > > Hee, hee. Yes, this is probably no big deal (and not put forth as any > strong argument for not commiting this) but who knows what some > cronjob scripts might expect. Hmmm, let me give constructive > criticism a shot and see how far it goes: humm! you are looking for a small bug (the beast :) this problem also exists w/ du -c... # cp -rp /etc/defaults total # du -c total 69 total 69 total so, your argumentation isn't "viable" (in french, don't know the translation in english, sorry). if you prefer, say "total:" inseatd of just "total" since it's not possible to remote mount something like this. but what about du -c in this case... > Perhaps if it were expected that the "df -c" output were completly > different? Then "total" would be less likely to be counted as some > other filesystem by mistake? Perhaps something along the lines: > > bash-2.0.3# df -c /usr /usr/local > Totals for: /usr /usr/local > 1K-Blocks: 2422598 > Used: 1116313 > Avail: 1306285 > Capacity: 46% > > Dunno how that would go over with the purists, though... after all > 'df' is in one of the holiest of directories... /bin. <g> Cyrille. -- home:mailto:clefevre@no-spam.citeweb.net Supprimer "no-spam." pour me repondre. work:mailto:Cyrille.Lefevre@no-spam.edf.fr Remove "no-spam." to answer me back. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?sntlcwik.fsf>