]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libmount: don't setup new loopdev on remount with regular mtab
authorKarel Zak <kzak@redhat.com>
Wed, 26 Sep 2012 09:25:01 +0000 (11:25 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 26 Sep 2012 09:25:01 +0000 (11:25 +0200)
commit1ae3d0d9327a6ca390afb6f1b812b2d5d05921a4
tree8b8e53a5020204ae455968dbd3883943aad827fd
parentab6c01925c62a3bf695cf09379a914f93769094e
libmount: don't setup new loopdev on remount with regular mtab

[chroot-i486] root:/tmp$ mount -oloop /tmp/blob /tmp/mnt
[chroot-i486] root:/tmp$ mount -o remount,loop,ro /tmp/mnt
[chroot-i486] root:/tmp$ mount
/dev/loop0 on /tmp/mnt type ext2 (ro,loop)
[chroot-i486] root:/tmp$ losetup -a
/dev/loop0: [2051]:306957 (/tmp/blob)
/dev/loop1: [0005]:2218 (/dev/loop0)
[chroot-i486] root:/tmp$ umount /tmp/mnt
umount: /tmp/mnt: filesystem umounted, but mount(8) failed: Device or
resource busy
[chroot-i486] root:/tmp$ losetup -d /dev/loop1
[chroot-i486] root:/tmp$ losetup -d /dev/loop0

Reported-by: g.esp@free.fr
Signed-off-by: Karel Zak <kzak@redhat.com>
libmount/src/context.c