Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Feb 2025 01:52:35 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 284914] autofs(4) confuses fts(3)
Message-ID:  <bug-284914-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D284914

            Bug ID: 284914
           Summary: autofs(4) confuses fts(3)
           Product: Base System
           Version: 15.0-CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: lexi@hemlock.eden.le-fay.org

the first time an autofs(4) filesystem is mounted, fts(3) (e.g., find(1) or
du(1)) will fail to traverse it.  running the same command a second time wo=
rks
correctly.

# df /home/ft
Filesystem    512-blocks Used Avail Capacity  Mounted on
map auto_home          0    0     0   100%    /home

# find /home/ft
/home/ft
/home/ft/.mutt_header_cache-lock
/home/ft/.ssh
/home/ft/.ssh/authorized_keys
/home/ft/.ssh/known_hosts
/home/ft/.ssh/known_hosts.old
find: fts_read: No such file or directory

# df /home/ft
Filesystem      512-blocks Used      Avail Capacity  Mounted on
/export/home/ft 1719233272  752 1719232520     0%    /home/ft

# find /home/ft
/home/ft
/home/ft/.mutt_header_cache-lock
/home/ft/.ssh
/home/ft/.ssh/authorized_keys
/home/ft/.ssh/known_hosts
/home/ft/.ssh/known_hosts.old
/home/ft/.k5login
/home/ft/.vimrc
/home/ft/.zcompdump
/home/ft/Mail
/home/ft/Mail/new
/home/ft/Mail/new/1730888987.V2b6429de6e936a53Idf1d2M757967.hemlock.eden.le=
-fay.org
[...]

this is repoducible every time, as long as the filesystem is not mounted.

/etc/auto_master:

/home           auto_home       -nosuid

/etc/auto_home:

*       -fstype=3Dnullfs :/export/home/&

using src f5aff1871d3273b3cd3621ea5d3e37cdd807e66f on amd64, /export/home i=
s a
ZFS filesystem.

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-284914-227>