Package: mount
Version: 2.20.1-5.2
Severity: normal

Hi,

When bind mounts are configured in /etc/fstab, they don't show up as bind 
mounts in the
output of 'mount'.

>From my /etc/fstab:

/dev/mapper/vg_sulphur-root /               ext4    errors=remount-ro 0       1
/dev/mapper/vg_sulphur-bind /srv/bind   ext4    
errors=remount-ro,nosuid,relatime       0       2
# proc inside bind chroot
/proc   /srv/bind/proc  none    bind    0       0
# bind needs /usr/lib/x86_64-linux-gnu/openssl-1.0.0/engines in its chroot
/usr/lib/x86_64-linux-gnu/openssl-1.0.0/engines 
/srv/bind/usr/lib/x86_64-linux-gnu/openssl-1.0.0/engines none bind 0 0

Output from 'mount | grep bind' (bind matches /srv/bind in this case):

/dev/mapper/vg_sulphur-bind on /srv/bind type ext4 
(rw,nosuid,relatime,errors=remount-ro,user_xattr,barrier=1,data=ordered)
proc on /srv/bind/proc type proc (rw,nosuid,nodev,noexec,relatime)
/dev/mapper/vg_sulphur-root on 
/srv/bind/usr/lib/x86_64-linux-gnu/openssl-1.0.0/engines type ext4 
(rw,relatime,errors=remount-ro,user_xattr,barrier=$

The bind mounts show up with the file system type (ext4) and device 
(/dev/mapper/vg_sulphur-root) of the device from which they are bind mounted.

The output of mount should show:

/proc on /srv/bind/proc none (rw,bind)

As it did on squeeze.

This is probably caused by the /etc/mtab -> /proc/mounts symlink now.

This new behaviour makes it impossible to see which file systems were bind 
mounted.

Regards,

Rik


-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-3-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages mount depends on:
ii  libblkid1    2.20.1-5.2
ii  libc6        2.13-35
ii  libmount1    2.20.1-5.2
ii  libselinux1  2.1.9-5
ii  libsepol1    2.1.4-3

mount recommends no packages.

Versions of packages mount suggests:
pn  nfs-common  <none>

-- no debconf information


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to