From owner-freebsd-current Wed Feb 22 16:13:55 1995 Return-Path: current-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.9/8.6.6) id QAA11029 for current-outgoing; Wed, 22 Feb 1995 16:13:55 -0800 Received: from halloran-eldar.lcs.mit.edu (halloran-eldar.lcs.mit.edu [18.26.0.159]) by freefall.cdrom.com (8.6.9/8.6.6) with SMTP id QAA11021 for ; Wed, 22 Feb 1995 16:13:43 -0800 Received: by halloran-eldar.lcs.mit.edu; id AA09145; Wed, 22 Feb 1995 19:12:46 -0500 Date: Wed, 22 Feb 1995 19:12:46 -0500 From: Garrett Wollman Message-Id: <9502230012.AA09145@halloran-eldar.lcs.mit.edu> To: Nate Williams Cc: "Jordan K. Hubbard" , Garrett Wollman , current@FreeBSD.org Subject: Re: mountd changes In-Reply-To: <199502230010.RAA16145@trout.sri.MT.net> References: <199502230010.RAA16145@trout.sri.MT.net> Sender: current-owner@FreeBSD.org Precedence: bulk < said: > If that is the case, (and we don't have 'multiple' copies of /usr/local > mounted each time), then shouldn't it be up to mount/umount to do the > right thing with respect to df and friends? If something is already in > the tree already, then why repeat it? It muddies up the output when we > have 10 version of: > /usr/local/X11R6 127143 64985 55800 54% /mnt Well, there are two points here: 1) In the specific case of the null filesystem, `df' has no way of knowing that the fsstat information for `/mnt' was faked up by nullfs from the information provided by `/usr/local'. 2) In general, all `df' does is iterate through the mount list and get the stats for each one. I don't think you can make it smart enough to do what you want without also making it stupid enough to mistakenly omit two filesystems that look the same but really aren't. It just doesn't have enough information, and arguably it shouldn't. -GAWollman -- Garrett A. Wollman | Shashish is simple, it's discreet, it's brief. ... wollman@lcs.mit.edu | Shashish is the bonding of hearts in spite of distance. Opinions not those of| It is a bond more powerful than absence. We like people MIT, LCS, ANA, or NSA| who like Shashish. - Claude McKenzie + Florent Vollant