]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libmount: canonicalize for conversion from loopdev backing file
authorKarel Zak <kzak@redhat.com>
Mon, 5 Aug 2013 11:58:01 +0000 (13:58 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 5 Aug 2013 11:58:01 +0000 (13:58 +0200)
commit3f420a49dd4d0c413b635dd621aa34eebce2d3d2
treea3d03bba3f78b071f11bfd2408f7d0005cd48a23
parent1beb933efde7bcb6b65122a5b88bdde2bf451dc6
libmount: canonicalize for conversion from loopdev backing file

  # mount foo.img /mnt
  # umount foo.img
  umount: foo.img: not mounted

The loopdev code (and sysfs backing_file) uses absolute paths, but
libmount does not canonicalize the path before lookup for the backing file.

References: https://bugzilla.redhat.com/show_bug.cgi?id=950497
Signed-off-by: Karel Zak <kzak@redhat.com>
libmount/src/context_umount.c