]> git.ipfire.org Git - thirdparty/systemd.git/commit
automount: don't lstat(2) upon umount request (#6086)
authorFranck Bui <fbui@suse.com>
Mon, 3 Jul 2017 12:48:21 +0000 (14:48 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 3 Jul 2017 12:48:21 +0000 (14:48 +0200)
commit9e7bc4dc3a0b7ae3095aaae77c31d951e5b99ae3
tree6eb98b398de40813749b34dc6fa77f1948087a1c
parent0004f698df1410ef8b6ab3fb5f4b41a60c91182c
automount: don't lstat(2) upon umount request (#6086)

When umounting an NFS filesystem, it is not safe to lstat(2) the mountpoint at
all as that can block indefinitely if the NFS server is down.

umount() will not block, but lstat() will.

This patch therefore removes the call to lstat(2) and defers the handling of
any error to the child process which will issue the umount call.
src/core/automount.c