Subject: Re: bug#10363: /etc/mtab -> /proc/mounts symlink affects df(1) output for

From: Andreas Schwab <[email-masked]>
Date: Fri, 20 Jan 2012 12:10:23 +0100

Goswin von Brederlow <[email-masked]> writes:

> Note that in a chroot any mountpoints inside the chroot have their
> prefix removed (/home/mrvn/chroot becomes /) while others are left as
> is. That is wrong too IMHO. The filesystem the chroots / is on should
> become / even if the chroot is a directory instead of a mountpoint and
> entries outside the chroot should not be listed at all.

You can get such a view from /proc/self/mountinfo.

Andreas.

-- 
Andreas Schwab, [email-masked]
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."