Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Dec 2020 20:49:23 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 251906] autofs: automounter always only adds to /var/db/mounttab but never clears it
Message-ID:  <bug-251906-227@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 251906
           Summary: autofs: automounter always only adds to
                    /var/db/mounttab but never clears it
           Product: Base System
           Version: 12.2-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: d8zNeCFG@aon.at

Scenario:
- FreeBSD 12.2-RELEASE-p2 #4 r368500M
- autofs on /net using a self-developed /etc/autofs/special_hosts3 (similar=
 to
the regular special_hosts)

Result:
- On every auto mount, an entry is added to /var/db/mounttab
- On no auto unmount any entry is deleted from /var/db/mounttab
- When forcibly timing out all mounts and none remain, /var/db/mounttab is
still full of (even duplicated) entries:

[1]# df -t nfs ; automount -u ; echo after ; df -t nfs ; cat /var/db/mountt=
ab
Filesystem    1K-blocks   Used    Avail Capacity  Mounted on
gandalf:/z/ss  65015520 629996 64385524     1%    /net/gandalf/z/ss
after
1608103434      hal     /z/SRC/FreeBSD/releng/12.2
1608117698      hal     /z/release/FreeBSD-ports/amd64/packages-12
1608117947      hal     /z/VOL/FreeBSD-ports
1608145583      hal     /z/SRC/FreeBSD-ports/head
1608145583      hal     /z/VOL/FreeBSD-ports
1608145584      hal     /z/SRC/FreeBSD/releng/12.2
1608145643      hal     /z/VOL/FreeBSD-ports
1608145685      hal     /z/VOL/ftp
1608145715      hal     /z/VOL/FreeBSD-ports
1608145720      hal     /z/SRC/FreeBSD/releng/12.2
1608148304      hal     /z/release/FreeBSD-ports/amd64/packages-12
1608148333      hal     /z/VOL/FreeBSD-ports
1608148364      gandalf /z/SRC/src.local
1608148531      gandalf /z/SRC/src.local
1608148859      gandalf /z/SRC/src.local
1608151096      gandalf /z/SRC/src.local
1608151236      gandalf /z/ss
[0]# \rm /var/db/mounttab
[0]#=20

Expected result:
- The autounmountd should remove one matching line from /var/db/mounttab
whenever it times out a mount

Note:
- See also bug #251395.

-- Martin

--=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-251906-227>