diff options
author | trasz <trasz@FreeBSD.org> | 2015-05-21 13:13:56 +0000 |
---|---|---|
committer | trasz <trasz@FreeBSD.org> | 2015-05-21 13:13:56 +0000 |
commit | a151e5d0a47fd99bad0a0e2ce4711b08d0192e14 (patch) | |
tree | 555a3c67bdb860e14f1f22d88f5eef21365a1823 /etc | |
parent | 9cd1663f49b69f6da434eaa296a9ccf06f37ed8c (diff) | |
download | FreeBSD-src-a151e5d0a47fd99bad0a0e2ce4711b08d0192e14.zip FreeBSD-src-a151e5d0a47fd99bad0a0e2ce4711b08d0192e14.tar.gz |
MFC r277171:
Use newly added GEOM notifications to discard autofs caches.
Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'etc')
-rw-r--r-- | etc/devd.conf | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/etc/devd.conf b/etc/devd.conf index 7428717..4120c63 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"; }; */ |