]> git.ipfire.org Git - thirdparty/util-linux.git/commit
umount: (recursive) don't call umount(2) for already unmounted targets
authorKarel Zak <kzak@redhat.com>
Thu, 15 Nov 2012 15:44:07 +0000 (16:44 +0100)
committerKarel Zak <kzak@redhat.com>
Thu, 15 Nov 2012 15:44:07 +0000 (16:44 +0100)
commitae978c4d6ca376bdab6398e635be1664be370ffa
tree890bd3c6e1818b5efa028e7ff7e7bbaaf4f5922c
parent7dd72c98349b58d5eb34180029e0b9ca1e13b981
umount: (recursive) don't call umount(2) for already unmounted targets

In the umount --recursive we follow entries from mountinfo, but the
entries maybe already obsolete. Especially if the hierarchy of the
mountpoints contains shared subtrees and umount(2) for one entry may
generate umount for some other entry too.

Signed-off-by: Karel Zak <kzak@redhat.com>
libmount/src/tab.c
sys-utils/umount.c