]> git.ipfire.org Git - thirdparty/systemd.git/commit
umount: do not move busy network mounts
authorAntonio Alvarez Feijoo <antonio.feijoo@suse.com>
Mon, 10 Mar 2025 11:21:26 +0000 (12:21 +0100)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 10 Mar 2025 20:53:31 +0000 (05:53 +0900)
commitcef2181cda87cbecd6e92f6d7a3bb8556067a88e
tree39ef445769e48528a1068275fdac168e26318c3d
parent63b331517e54a199b5c760c04ef1a6903be57508
umount: do not move busy network mounts

If a network mount returns EBUSY on umount, the logic introduced in
6dc68a00cfc816678fd713b12ae2a4cf2ae6da85 causes shutdown to hang indefinitely on
`fstatat()` (i.e., within `is_dir(m->path, true)`). Hence, skip this logic for
network mounts (following the same motivation we use to skip read-only mounts in
this kind of file systems).

Fixes 6dc68a00cfc816678fd713b12ae2a4cf2ae6da85
src/shutdown/umount.c
src/shutdown/umount.h