diff options
author | Petr Uzel | 2011-06-29 10:24:09 +0200 |
---|---|---|
committer | Karel Zak | 2011-06-29 11:10:52 +0200 |
commit | b3b0c657818aa6191e6494f88d671601dd9d837d (patch) | |
tree | 2081e071325ace3c99f11e0803638879a2f3ff41 /term-utils/script.1 | |
parent | mount: first look for mountpoint (diff) | |
download | kernel-qcow2-util-linux-b3b0c657818aa6191e6494f88d671601dd9d837d.tar.gz kernel-qcow2-util-linux-b3b0c657818aa6191e6494f88d671601dd9d837d.tar.xz kernel-qcow2-util-linux-b3b0c657818aa6191e6494f88d671601dd9d837d.zip |
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>
Diffstat (limited to 'term-utils/script.1')
0 files changed, 0 insertions, 0 deletions