Bug 241531 - autofs: stale entries remain in /media, "automount -c" does not remove them
Summary: autofs: stale entries remain in /media, "automount -c" does not remove them
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 11.3-RELEASE
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-bugs mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-10-28 02:56 UTC by Victor Sudakov
Modified: 2019-11-03 16:54 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Victor Sudakov 2019-10-28 02:56:31 UTC
I'm using the -media map attached to /media. The problem is that stale entries for removed CDROMs remain in /media forever.

Please note that:

1. Running /etc/autofs/special_media does not show those CDROMs but they are still in /media

2. Even running "/usr/sbin/automount -c" by hand DOES NOT help, the stale entries are still there.

Only restarting the automountd and autounmountd daemons removes those entries.
Comment 1 Victor Sudakov 2019-10-28 14:27:21 UTC
root@vas:~ # automount -cv |& grep -v autofs
automount: flushing /media1
root@vas:~ # /etc/autofs/special_media
TESTPEN
root@vas:~ # ls /media1
Linux Mint 19 Cinnamon 64-bit   TESTPEN
root@vas:~ #
Comment 2 Victor Sudakov 2019-11-03 16:54:32 UTC
Really, why does it accumulate all that stale stuff?

root@vas:~ # automount -cv |& grep flush
automount: flushing autofs caches
automount: flushing /media
root@vas:~ # /etc/autofs/special_media
HAIRCLIPPER
root@vas:~ # ls /media
da0             da0p2           da0s1           HAIRCLIPPER
root@vas:~ #