diff options
author | trasz <trasz@FreeBSD.org> | 2015-03-07 19:36:06 +0000 |
---|---|---|
committer | trasz <trasz@FreeBSD.org> | 2015-03-07 19:36:06 +0000 |
commit | 1fbf58cee98e23d69f8bd11d2038910d33b4eee5 (patch) | |
tree | 2b1a95672f3fa645347d40114e1dd4d124ba2de6 /sys/fs/autofs/autofs.c | |
parent | 97710cbe33ec6723cc9fca56b97045a54a06e1a7 (diff) | |
download | FreeBSD-src-1fbf58cee98e23d69f8bd11d2038910d33b4eee5.zip FreeBSD-src-1fbf58cee98e23d69f8bd11d2038910d33b4eee5.tar.gz |
MFC r274859:
Implement "automount -c".
Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'sys/fs/autofs/autofs.c')
-rw-r--r-- | sys/fs/autofs/autofs.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sys/fs/autofs/autofs.c b/sys/fs/autofs/autofs.c index 0393d13..235d09d 100644 --- a/sys/fs/autofs/autofs.c +++ b/sys/fs/autofs/autofs.c @@ -318,6 +318,18 @@ autofs_cache_callout(void *context) anp->an_cached = false; } +void +autofs_flush(struct autofs_mount *amp) +{ + + /* + * XXX: This will do for now, but ideally we should iterate + * over all the nodes. + */ + amp->am_root->an_cached = false; + AUTOFS_DEBUG("%s flushed", amp->am_mountpoint); +} + /* * The set/restore sigmask functions are used to (temporarily) overwrite * the thread td_sigmask during triggering. |