← Back to team overview

touch-packages team mailing list archive

[Bug 1474958] Re: bind mount produces incorrect entry in mtab

 

This is intentional.  /etc/mtab has gone the way of the dodo and is now
just a symlink to /proc/mounts.  Bind mount origin information is no
longer tracked on purpose, as there is no distinction between the bind
mount and the original mount; both are equally valid, and neither is
subordinate to the other.


** Changed in: util-linux (Ubuntu)
       Status: New => Invalid

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to util-linux in Ubuntu.
https://bugs.launchpad.net/bugs/1474958

Title:
  bind mount produces incorrect entry in mtab

Status in util-linux package in Ubuntu:
  Invalid

Bug description:
  Ubuntu 15.04
  mount:
    Installed: 2.25.2-4ubuntu2
    Candidate: 2.25.2-4ubuntu2
    Version table:
   *** 2.25.2-4ubuntu2 0
          500 http://us.archive.ubuntu.com/ubuntu/ vivid/main amd64 Packages
          100 /var/lib/dpkg/status

  System has LVM on SSD standard install ext4 filesystem. (/dev/mapper/ubuntu--vg-root)
  mdadm RAID5 3 disks, btrfs filesystem (/dev/md127p1)
  RAID5 is mounted at /mnt/raid at boot.
  ---
  Bind mounts only display the device mount, not the from directory.
  The mount works, but the mtab entry is incorrect.

  # From LVM device, to LVM device.
  mount -o bind /home/rfoos /srv/nfs4/homes
  # From Raid device, to LVM device
  mount -o bind /mnt/raid/var/lib/libvirt /var/lib/libvirt
  # With corrected fstab entries (below) mount -a does work
  mount -a

  --- /etc/mtab entries
  /dev/mapper/ubuntu--vg-root /srv/nfs4/homes ext4 rw,relatime,errors=remount-ro,data=ordered 0 0
  /dev/md127p1 /var/lib/libvirt btrfs rw,nosuid,nodev,relatime,space_cache 0 0
  /dev/md127p1 /srv/nfs4/share btrfs rw,nosuid,nodev,relatime,space_cache 0 0

  --- mount list of mounts
  /dev/md127p1 on /mnt/raid type btrfs (rw,nosuid,nodev,relatime,space_cache)
  /dev/md127p1 on /var/lib/libvirt type btrfs (rw,nosuid,nodev,relatime,space_cache)
  /dev/mapper/ubuntu--vg-root on /srv/nfs4/homes type ext4 (rw,relatime,errors=remount-ro,data=ordered)

  --- corrected fstab entries.
  # mount raid device
  /dev/md127p1 /mnt/raid btrfs rw,nosuid,nodev,relatime,space_cache 0 0
  # corrected entries
  /mnt/raid/var/lib/libvirt /var/lib/libvirt none bind 0 0
  /home/rfoos /srv/nfs4/homes none bind 0 0

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/util-linux/+bug/1474958/+subscriptions


References