[Bug 284914] autofs(4) confuses fts(3)

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 20 Feb 2025 02:10:55 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=284914

--- Comment #3 from Lexi Winter <lexi@hemlock.eden.le-fay.org> ---
so, setting vfs.autofs.mount_on_stat=1 fixes the problem:

# stat /home
18446744072887533315 1 drwxr-xr-x 3 root wheel 0 512 "Feb 20 00:17:28 2025"
"Feb 20 00:17:28 2025" "Feb 20 00:17:28 2025" "Feb 20 00:17:28 2025" 4096 1 0
/home

# stat /home/ft        
18446744072887533315 7 drwxr-xr-x 3 root wheel 0 512 "Feb 20 01:44:34 2025"
"Feb 20 01:44:34 2025" "Feb 20 01:44:34 2025" "Feb 20 01:44:34 2025" 4096 1 0
/home/ft

# sysctl vfs.autofs.mount_on_stat=1

# stat /home
18446744072887533315 1 drwxr-xr-x 3 root wheel 0 512 "Feb 20 00:17:28 2025"
"Feb 20 00:17:28 2025" "Feb 20 00:17:28 2025" "Feb 20 00:17:28 2025" 4096 1 0
/home

# stat /home/ft
687931150 34 drwx------ 6 ft users 0 18 "Feb 19 23:44:01 2025" "Nov  7 09:25:26
2024" "Feb 19 23:47:16 2025" "Nov  7 09:25:26 2024" 4096 17 0x800 /home/ft

(and find now works.)

this is rather unfortunate as default behaviour though, especially since this
particular interaction doesn't seem to be documented in autofs(4).

-- 
You are receiving this mail because:
You are the assignee for the bug.