From 1fbf58cee98e23d69f8bd11d2038910d33b4eee5 Mon Sep 17 00:00:00 2001 From: trasz Date: Sat, 7 Mar 2015 19:36:06 +0000 Subject: MFC r274859: Implement "automount -c". Sponsored by: The FreeBSD Foundation --- sys/fs/autofs/autofs.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'sys/fs/autofs/autofs.c') 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. -- cgit v1.1