]> git.ipfire.org Git - thirdparty/systemd.git/commit
chase: when chasing paths, trigger automounts
authorLennart Poettering <lennart@poettering.net>
Thu, 3 Jul 2025 09:49:44 +0000 (11:49 +0200)
committerLuca Boccassi <luca.boccassi@gmail.com>
Thu, 3 Jul 2025 21:18:56 +0000 (22:18 +0100)
commitc5de7b14ae2e08d267d8d75bc88934ac6aa7dcd6
tree7936099a4aeae49c82183ea4f0170472360170bc
parent0754db571b05236150ee9f56f2b80a3c0570c712
chase: when chasing paths, trigger automounts

As it turns out open() with O_PATH does *not* trigger autofs, you get a
reference to the autofs inode, if not triggered.

But there's a way out: open_tree() (when specified without
OPEN_TREE_CLONE) is actually fully equivalent to open() with O_PATH –
with the exception of one thing: it *does* trigger automounts.

Thanks for Christian Brauner for pointing me to this and saving my day.

Fixes: #33155
src/basic/chase.c