PERFORCE change 139542 for review
Sam Leffler
sam at FreeBSD.org
Mon Apr 7 21:12:05 UTC 2008
http://perforce.freebsd.org/chv.cgi?CH=139542
Change 139542 by sam at sam_ebb on 2008/04/07 21:11:18
add mountroot event to be notified when the rootvnode is
valid; this replaces SI_SUB_MOUNT_ROOT which was made
meaningless with the "devfs pivotroot changes" (to quote jhb)
Affected files ...
.. //depot/projects/vap/sys/kern/vfs_mount.c#11 edit
.. //depot/projects/vap/sys/sys/eventhandler.h#6 edit
Differences ...
==== //depot/projects/vap/sys/kern/vfs_mount.c#11 (text+ko) ====
@@ -1488,6 +1488,8 @@
FILEDESC_SUNLOCK(p->p_fd);
VOP_UNLOCK(rootvnode, 0);
+
+ EVENTHANDLER_INVOKE(mountroot);
}
/*
==== //depot/projects/vap/sys/sys/eventhandler.h#6 (text+ko) ====
@@ -171,6 +171,10 @@
typedef void (*vfs_lowvnodes_handler_t)(void *, int);
EVENTHANDLER_DECLARE(vfs_lowvnodes, vfs_lowvnodes_handler_t);
+/* Root mounted event */
+typedef void (*mountroot_handler_t)(void *);
+EVENTHANDLER_DECLARE(mountroot, mountroot_handler_t);
+
/*
* Process events
* process_fork and exit handlers are called without Giant.
More information about the p4-projects
mailing list