Re: df and multiple-mounted mountpoints (redux)

2004-05-04 Thread Jim Meyering
> 2004-04-29 Paul Eggert <[EMAIL PROTECTED]> > > * src/df.c (show_disk, show_point): If several filesystems are > mounted on the same mount point, prefer the last one, not the first. > Problem reported by Christian Jones in >

Re: df and multiple-mounted mountpoints (redux)

2004-05-02 Thread Christian Jones
Paul Eggert wrote: Here's a proposed patch to implement this behavior. Can you please try this out? out of curiosity, any chance of putting this in the main tree? Thanks, as always, CDJ -- Christian Jones [EMAIL PROTECTED] http://www.aleph0.com/~chjones

Re: df and multiple-mounted mountpoints (redux)

2004-04-30 Thread Christian Jones
Paul Eggert wrote: It seems to me that the basic problem is that when there are multiple filesystems mounted on the same mount point, "df" prefers the first one listed, but on your host (and I think this is traditional behavior) it should prefer the last. Exactly. (In case you're curious, df is

Re: df and multiple-mounted mountpoints (redux)

2004-04-29 Thread Paul Eggert
It seems to me that the basic problem is that when there are multiple filesystems mounted on the same mount point, "df" prefers the first one listed, but on your host (and I think this is traditional behavior) it should prefer the last. Here's a proposed patch to implement this behavior. Can you

Re: df and multiple-mounted mountpoints (redux)

2004-04-29 Thread Christian Jones
Andreas Schwab wrote: ??? This is what df is doing. And there is no way to get the attributes of the hidden mount point, since it is, in fact, hidden. That becomes more apparent if you mount over a directory that has another mountpoint in some subdirectory. The other mountpoint is simply not rea

Re: df and multiple-mounted mountpoints (redux)

2004-04-29 Thread Christian Jones
Christian Jones wrote: -bash-2.05b# mount /dev/discs/disc0/part3 /mnt -bash-2.05b# ls /mnt bin boot dev etc lib lost+found mnt proc root sbin usr var -bash-2.05b# mount /dev/discs/disc0/part4 /mnt -bash-2.05b# ls /mnt infinit infinit-0.3 lost+found -bash-2.05b# df -P Filesystem

Re: df and multiple-mounted mountpoints (redux)

2004-04-28 Thread Andreas Schwab
Christian Jones <[EMAIL PROTECTED]> writes: > Whereas clearly (in the above case), it doesn't. The aforementioned > thread also notes (in fact, stresses) the fact that the capacity is > incorrect for /dev/discs/disc0/part3 after something has been mounted > "over" it. Unfortunately, the consensu

Re: df and multiple-mounted mountpoints

2003-07-09 Thread Tim Waugh
On Tue, Jul 08, 2003 at 10:19:49AM -0700, Paul Eggert wrote: > Tim Waugh <[EMAIL PROTECTED]> writes: > > > It's misleading because it shows each mounted device on that mount > > point as having the same size and usage, even the ones which are not > > at the top of the stack. > > OK, I'm starting

Re: df and multiple-mounted mountpoints

2003-07-08 Thread Tim Waugh
On Tue, Jul 08, 2003 at 09:31:05AM -0600, Bob Proulx wrote: > I am sorry but I don't follow. Perhaps you could give an example of > why it's misleading? Please cut-n-paste the output to create a small > example showing what you are talking about about. [EMAIL PROTECTED] root]# mkdir mnt [EMAIL

Re: df and multiple-mounted mountpoints

2003-07-08 Thread Paul Eggert
Tim Waugh <[EMAIL PROTECTED]> writes: > It's misleading because it shows each mounted device on that mount > point as having the same size and usage, even the ones which are not > at the top of the stack. OK, I'm starting to understand now (though it'd be nice to see sample output). But I don't

Re: df and multiple-mounted mountpoints

2003-07-08 Thread Bob Proulx
Tim Waugh wrote: > It's misleading because it shows each mounted device on that mount > point as having the same size and usage, even the ones which are not > at the top of the stack. I am sorry but I don't follow. Perhaps you could give an example of why it's misleading? Please cut-n-paste the

Re: df and multiple-mounted mountpoints

2003-07-08 Thread Tim Waugh
On Mon, Jul 07, 2003 at 09:04:49PM -0700, Paul Eggert wrote: > Why is it misleading? I don't understand the situation, but from what > you write only the last mounted fs is visible, i.e., is accessible to > any application. It's misleading because it shows each mounted device on that mount point

Re: df and multiple-mounted mountpoints

2003-07-07 Thread Paul Eggert
Tim Waugh <[EMAIL PROTECTED]> writes: > With Linux it is possible to have a single mountpoint mounted several > times; the last mounted fs is the one whose stats are visible, and > they are stacked. > > What should df do in this case? Currently it shows the stats for the > last mounted fs for ea