]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libmount: avoid resolving pseudofs source on update
authorDave Reisner <d@falconindy.com>
Mon, 26 Dec 2011 22:10:23 +0000 (17:10 -0500)
committerKarel Zak <kzak@redhat.com>
Mon, 2 Jan 2012 13:27:09 +0000 (14:27 +0100)
commitee83edede1f80666806002248e89168ee41a6cc0
tree7c7141f934a28aab52ba7212e3c1740c1b733717
parent16b8db49fee91417aad09aaa98edd3acd9e70754
libmount: avoid resolving pseudofs source on update

Similar to the previous commit, when mounting a pseudofs, trust the
source of the fs, as it cannot be matched to backing device on the
filesystem.

Similar situation, but slightly different bug:

  # mkdir /foo /root/foo
  # echo 'foo  /foo  tmpfs  defaults  0  0' >> /etc/fstab
  # cd /root
  # mount -a
  # mount | grep /foo
  /root/foo on /foo type tmpfs (rw,relatime)

This fixes the pure libmount based mount utility, but the legacy mount
tool will still fail to handle this properly.

Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
libmount/src/context.c