]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libmount: don't use umount optimization for -l or -f
authorKarel Zak <kzak@redhat.com>
Mon, 15 Oct 2012 09:10:50 +0000 (11:10 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 15 Oct 2012 09:10:50 +0000 (11:10 +0200)
commit6d5d2b5fd342308bb2db6b82d89ac22ef7374184
treee72ea3f3e517133b91185909ee017c479f7703f7
parent71b161ea37c57dc6a8341aeec6c0c2ae7cd4cfe3
libmount: don't use umount optimization for -l or -f

The options -l (lazy) and -f (force) means that the mountpoint may be
unreadable (for example because NFS server is unreadable). So we
should not try to be smart in this case and we should try to minimize
number of situations when stat() or readlink() is used for the
mountpoint.

Signed-off-by: Karel Zak <kzak@redhat.com>
libmount/src/context_umount.c