FS#29313 - mtab as a symlink does not display '-o bind' mounts
Attached to Project:
Arch Linux
Opened by Mark (voidzero) - Friday, 06 April 2012, 17:02 GMT
Last edited by Dave Reisner (falconindy) - Friday, 06 April 2012, 17:29 GMT
Opened by Mark (voidzero) - Friday, 06 April 2012, 17:02 GMT
Last edited by Dave Reisner (falconindy) - Friday, 06 April 2012, 17:29 GMT
|
Details
A subtree mounted into an existing hierarchy with options
'-t none -o bind' displays in /proc/mounts as a block
device. This makes it hard to discern '-o bind' mounts.
Compare /proc/mtab (1) and /etc/mtab (2) if the latter is a file: 1: /dev/lvm/root /var/cache/pacman btrfs rw,noatime 0 0 2: /var/local/cache/pacman /var/cache/pacman none rw,bind 0 0 I don't know why it was chosen to let mtab be a symlink but it is far from ideal on servers that have lots of '-o bind' mounts, like nfs servers. Suggestion: revert back to file based mtab to keep sysadmins happy. Alternatively consider an rc.conf option so the user can decide. Note that this is the second bug pertaining to /etc/mtab - bug #27948 already details the issues with the '-o user' option. |
This task depends upon
Closed by Dave Reisner (falconindy)
Friday, 06 April 2012, 17:29 GMT
Reason for closing: Won't fix
Additional comments about closing: use findmnt.
Friday, 06 April 2012, 17:29 GMT
Reason for closing: Won't fix
Additional comments about closing: use findmnt.
[#1] http://karelzak.blogspot.com.ar/2011/04/bind-mounts-mtab-and-read-only.html