Author: trasz
Date: Thu May 21 13:13:56 2015
New Revision: 283226
URL: https://svnweb.freebsd.org/changeset/base/283226

Log:
  MFC r277171:
  
  Use newly added GEOM notifications to discard autofs caches.
  
  Sponsored by: The FreeBSD Foundation

Modified:
  stable/10/etc/devd.conf
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/etc/devd.conf
==============================================================================
--- stable/10/etc/devd.conf     Thu May 21 13:11:48 2015        (r283225)
+++ stable/10/etc/devd.conf     Thu May 21 13:13:56 2015        (r283226)
@@ -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";
 };
 
 */
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to