]> 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>
Mon, 1 Oct 2012 10:01:49 +0000 (12:01 +0200)
commit1762c642cb64f3eafa03b3d8c42e8684af9f8788
treec8802ed2c064d278990318dc7ff6d748935b4ba9
parent9cc03553f7b8494c7193024eec6e13b903eb2eec
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