Date: Mon, 7 Apr 2008 21:12:04 GMT From: Sam Leffler <sam@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 139542 for review Message-ID: <200804072112.m37LC4dB095656@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=139542 Change 139542 by sam@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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200804072112.m37LC4dB095656>