From owner-freebsd-current Fri Jul 7 17:10:26 2000 Delivered-To: freebsd-current@freebsd.org Received: from lafontaine.cybercable.fr (lafontaine.cybercable.fr [212.198.0.202]) by hub.freebsd.org (Postfix) with SMTP id 7C31737B5AB for ; Fri, 7 Jul 2000 17:10:16 -0700 (PDT) (envelope-from root@gits.dyndns.org) Received: (qmail 10271289 invoked from network); 8 Jul 2000 00:10:13 -0000 Received: from r224m65.cybercable.tm.fr (HELO gits.dyndns.org) ([195.132.224.65]) (envelope-sender ) by lafontaine.cybercable.fr (qmail-ldap-1.03) with SMTP for ; 8 Jul 2000 00:10:13 -0000 Received: (from root@localhost) by gits.dyndns.org (8.9.3/8.9.3) id CAA34519; Sat, 8 Jul 2000 02:10:12 +0200 (CEST) (envelope-from root) Posted-Date: Sat, 8 Jul 2000 02:10:12 +0200 (CEST) To: Paul Herman Cc: Bill Fumerola , Sheldon Hearn , freebsd-bugs@FreeBSD.ORG, current@FreeBSD.ORG Subject: Re: bin/19635: add -c for grand total to df(1), like du(1) does References: Reply-To: clefevre@citeweb.net X-Face: V|+c;4!|B?E%BE^{E6);aI.[<97Zd*>^#%Y5Cxv;%Y[PT-LW3;A:fRrJ8+^k"e7@+30g0YD0*^^3jgyShN7o?a]C la*Zv'5NA,=963bM%J^o]C From: Cyrille Lefevre Date: 08 Jul 2000 02:10:11 +0200 In-Reply-To: Paul Herman's message of "Fri, 7 Jul 2000 01:33:12 +0200 (CEST)" Message-ID: Lines: 55 X-Mailer: Gnus v5.6.45/XEmacs 21.1 - "Canyonlands" Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Paul Herman 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. 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