Package: util-linux
Version: 2.20.1-1
Severity: wishlist
Hi,
when /etc/mtab is a file one can hide mountpoints by not listing them
in /etc/mtab. Also some mountpoints listed in /etc/mtab were ignored
by tools like df. Specifically bind mounts. With /etc/mtab being a
symlink to /proc/mounts this is no longer possible and the output of
tools like df can grow quite a lot.
This becomes anyoing when using for example schroot. Every chroot I
start (bind) mounts /, /dev, /dev/pts, /proc, /sys, /home, /tmp,
/run. So every running chroot adds another 8 entries to the df output,
which quickly becomes quite confusing.
To solve this problem I would like to request a new mount option
"hidde". The option should have no effect in the kernel other than
that it gets listed in /proc/mounts. On the user-space side though
tools like df can then skip those entries unless they get told to list
all entries (df -a).
Mount could automatically set the "hidde" option for bind mounts to
preserve the old behaviour.
There also should be an option "unhide" to turn of "hidde". so the
following would work:
mount -oremount,hide /run # No longer show /run in df output
mount -oremount,unhide /run # Show /run in df output again
MfG
Goswin
-- System Information:
Debian Release: wheezy/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 3.1.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=C, LC_CTYPE=de_DE (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/dash
Versions of packages util-linux depends on:
ii debconf [debconf-2.0] 1.5.41
ii dpkg 1.16.1.2
ii initscripts 2.88dsf-13.13
ii install-info 4.13a.dfsg.1-8
ii libblkid1 2.20.1-1
ii libc6 2.13-21
ii libncurses5 5.9-4
ii libselinux1 2.1.0-4
ii libslang2 2.2.4-3
ii libtinfo5 5.9-4
ii libuuid1 2.19.1-5
ii lsb-base 3.2-28
ii tzdata 2011n-1
ii zlib1g 1:1.2.3.4.dfsg-3
util-linux recommends no packages.
Versions of packages util-linux suggests:
pn console-tools 1:0.2.3dbs-70
pn dosfstools 3.0.12-1
pn util-linux-locales <none>
-- debconf information excluded
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]