[Bug 251906] autofs: automounter always only adds to /var/db/mounttab but never clears it

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Jan 8 21:09:30 UTC 2021


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=251906

--- Comment #27 from Robert Wing <rew at FreeBSD.org> ---
(In reply to Martin Birgmeier from comment #26)

Those are expected results, got it. At first, I thought those were unexpected.

Even unpatched `automount -u` will report 'Device Busy' errors.

An unpatched `autounmountd` doesn't log 'Device Busy' errors, unless
`autounmountd` was called with '-d' or '-v' - in which case, you'll see the
'Device Busy' errors. My patch did change the behavior of `autounmountd` to log
all errors (including 'Device Busy' errors), it appears that was a mistake.

Other than the logging issues, it sounds like the patch works as expected? 

If the patch is working, I'll be more inclined on getting the log messages
dialed in. The error messages being spammed in /var/log/messages are all logged
from the automount code.

I agree, it would be handy to have a library to share some of the code between
these programs.

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


More information about the freebsd-bugs mailing list