Subject: Re: bug#15955: df hides original mount point instead of bind mount

From: Bernhard Voelker <[email-masked]>
Date: Sat, 23 Nov 2013 02:11:08 +0100

tag 15955 notabug
thanks

On 11/22/2013 10:59 PM, Phillip Susi wrote:
> Without /etc/mtab, df tries to hide mount points by detecting
> duplicates and only showing the *last* instance in /proc/mounts, but
> this causes the bind mount to be shown rather than the original.  It
> should show the *first* instance instead.

Thanks for the bug report.
However, IIRC that behavior was fixed in v8.21.  Since then, df(1)
shows the *shortest* mount point for the same bind mount.
Looking into the Fedora bug tracker, this method of reducing duplicates
among (possibly mass) bind mounts seems also not to have too many fans,
but until now we didn't find a better method.

Have a nice day,
Berny