]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libmount: detach loopdev on umount if loop option in mtab
authorKarel Zak <kzak@redhat.com>
Tue, 18 Sep 2012 09:22:17 +0000 (11:22 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 18 Sep 2012 09:22:17 +0000 (11:22 +0200)
commit475c30d0614383692ed87e63b1889099757420c2
treec87a6ed0782c8854574e9ec2e09c07aa457de13b
parent829eab67e6f279ef76e18df7d5fe36ffe43979e1
libmount: detach loopdev on umount if loop option in mtab

[chroot-i486] root:/$ mount --version
mount from util-linux 2.22 (libmount 2.22.0: debug)
[chroot-i486] root:/$ losetup -a
[chroot-i486] root:/$ mount -oloop /tmp/foo_fs /tmp/bar_dir
[chroot-i486] root:/$ umount /tmp/foo_fs
[chroot-i486] root:/$ losetup -a
/dev/loop0: [2051]:387175 (/tmp/foo_fs)

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