diff options
author | trasz <trasz@FreeBSD.org> | 2015-01-14 11:18:45 +0000 |
---|---|---|
committer | trasz <trasz@FreeBSD.org> | 2015-01-14 11:18:45 +0000 |
commit | 27d3ef0c3ca7f9d501d2f5baa60278128315fdc6 (patch) | |
tree | dbb677345f71ea9792b4c14e8c143daa731a9fdd /etc | |
parent | a54e74c1820930733f3554b4b49d6d4e6ca04644 (diff) | |
download | FreeBSD-src-27d3ef0c3ca7f9d501d2f5baa60278128315fdc6.zip FreeBSD-src-27d3ef0c3ca7f9d501d2f5baa60278128315fdc6.tar.gz |
Use newly added GEOM notifications to discard autofs caches.
MFC after: 1 month
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"; }; */ |