From 8bfe453614cc4fde7d35480fcbbb95f431fc36e3 Mon Sep 17 00:00:00 2001 From: trasz Date: Thu, 21 May 2015 13:13:56 +0000 Subject: [PATCH] MFC r277171: Use newly added GEOM notifications to discard autofs caches. Sponsored by: The FreeBSD Foundation git-svn-id: svn://svn.freebsd.org/base/stable/10@283226 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f --- etc/devd.conf | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/etc/devd.conf b/etc/devd.conf index 742871768..4120c637c 100644 --- a/etc/devd.conf +++ b/etc/devd.conf @@ -318,16 +318,11 @@ notify 0 { action "/usr/local/etc/rc.d/postgresql restart"; }; -# Discard autofs caches, useful for the -media special map. The one -# second delay is for GEOM to finish tasting. -# -# XXX: We should probably have a devctl(4) event that fires after GEOM -# tasting. -# +# Discard autofs caches, useful for the -media special map. notify 100 { - match "system" "DEVFS"; - match "cdev" "(da|mmcsd)[0-9]+"; - action "sleep 1 && /usr/sbin/automount -c"; + match "system" "GEOM"; + match "subsystem" "DEV"; + action "/usr/sbin/automount -c"; }; */ -- 2.45.0