summaryrefslogtreecommitdiffstats
path: root/sys/kern/vfs_mount.c
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2008-04-08 17:53:33 +0000
committersam <sam@FreeBSD.org>2008-04-08 17:53:33 +0000
commit7979f5eff2d34bce4b109e6b3468d2150de74b5e (patch)
tree5712f7dece3e31ef855f9e76e52ec97e3fd5d9ad /sys/kern/vfs_mount.c
parent2601660586868b1346b15e1dd88a76412cf3197e (diff)
downloadFreeBSD-src-7979f5eff2d34bce4b109e6b3468d2150de74b5e.zip
FreeBSD-src-7979f5eff2d34bce4b109e6b3468d2150de74b5e.tar.gz
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
Diffstat (limited to 'sys/kern/vfs_mount.c')
-rw-r--r--sys/kern/vfs_mount.c2
1 files changed, 2 insertions, 0 deletions
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);
}
/*
OpenPOWER on IntegriCloud