On 18-Feb-00 Steven N. Hirsch wrote:
> Yes, but that doesn't explain why I was able to clear /net/cy/* using a
> umount, then have a second attempt also fail to mount the cy:/ export.
> Unless... Are you saying that a SIGUSR1 is required in _addition_ (or in
> lieu of) a successful 'umount'?
When you do the umount it unmounts the filesystem, but it leaves the
mount-point dirs there. autofs will only trigger a mount if you go into a
non-existent directory, or if the directory is empty. In this case, the
top-level directory (cy) was not empty because of the usr/src mountpoint, so
"cd /net/cy" just means 'go into the existing directory /net/cy'.
USR1 tells automount to expire any filesystems which can be expired and clean
up after them, so it will delete all the unused mountpoints, there-by allowing
a new remount of /net/cy. You have to get automount to do it rather than do it
manually because it exercises special powers in an autofs filesystem which
normal processes can't use (like the ability to create and delete directories).
J