From 7979f5eff2d34bce4b109e6b3468d2150de74b5e Mon Sep 17 00:00:00 2001 From: sam Date: Tue, 8 Apr 2008 17:53:33 +0000 Subject: o add a mountroot event handler that fires when / is mounted; this information was lost when root started being mounted by init o remove SI_SUB_MOUNT_ROOT since it's no longer meaningful MFC after: 2 weeks --- sys/kern/vfs_mount.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sys/kern/vfs_mount.c') diff --git a/sys/kern/vfs_mount.c b/sys/kern/vfs_mount.c index 5061f2a..cfaec35 100644 --- a/sys/kern/vfs_mount.c +++ b/sys/kern/vfs_mount.c @@ -1488,6 +1488,8 @@ set_rootvnode(struct thread *td) FILEDESC_SUNLOCK(p->p_fd); VOP_UNLOCK(rootvnode, 0); + + EVENTHANDLER_INVOKE(mountroot); } /* -- cgit v1.1