]> git.ipfire.org Git - thirdparty/util-linux.git/commit
umount: do not hang with disconnected NFS mounts
authorPetr Uzel <petr.uzel@suse.cz>
Wed, 29 Jun 2011 08:24:09 +0000 (10:24 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 29 Jun 2011 09:10:52 +0000 (11:10 +0200)
commitb3b0c657818aa6191e6494f88d671601dd9d837d
tree2081e071325ace3c99f11e0803638879a2f3ff41
parent067e9b4934372f72b89b2c0442a3d28290834537
umount: do not hang with disconnected NFS mounts

Since util-linux commit f4612577c942a3683b97632ad0b49671897c2070,
umount stat(2)s its argument to check whether it can be associated
with some loop device. This could hang with broken NFS mounts.

Fix by first checking mtab if umount's argument is mounted and only if
we fail, check if there is a loop device associated.

http://marc.info/?l=util-linux-ng&m=130924963804836&w=2

Reported-by: Konstantin Khlebnikov <khlebnikov@openvz.org>
Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
mount/umount.c