FreeBSD/sys/cddl/contrib/opensolaris/uts/common/fs/gfs.c
/*
 * gfs_root_create(): create a root vnode for a GFS filesystem
 *
 * Similar to gfs_dir_create(), this creates a root vnode for a filesystem.  The
 * only difference is that it takes a vfs_t instead of a vnode_t as its parent.
 */
create a root vnode for a GFS filesystem
Similar to gfs_dir_create(), this creates a root vnode for a filesystem.  The
only difference is that it takes a vfs_t instead of a vnode_t as its parent.
create a root vnode for a GFS filesystem Similar to gfs_dir_create () this creates a root vnode for a filesystem . The only difference is that it takes a vfs_t instead of a vnode_t as its parent .
vnode_t *
gfs_root_create(size_t size, vfs_t *vfsp, vnodeops_t *ops, ino64_t ino,
    gfs_dirent_t *entries, gfs_inode_cb inode_cb, int maxlen,
    gfs_readdir_cb readdir_cb, gfs_lookup_cb lookup_cb)
{
	vnode_t *vp;
#ifdef illumos
	VFS_HOLD(vfsp);
#endif
	vp = gfs_dir_create(size, NULL, vfsp, ops, entries, inode_cb,
	    maxlen, readdir_cb, lookup_cb);
	((gfs_file_t *)vp->v_data)->gfs_ino = ino;
	vp->v_flag |= VROOT;
	return (vp);
}
vnode_t * gfs_root_create ( size_t size , vfs_t * vfsp , vnodeops_t * ops , ino64_t ino , gfs_dirent_t * entries , gfs_inode_cb inode_cb , int maxlen , gfs_readdir_cb readdir_cb , gfs_lookup_cb lookup_cb ) { vnode_t * vp ; #ifdef illumos VFS_HOLD ( vfsp ) ; #endif vp = gfs_dir_create ( size , NULL , vfsp , ops , entries , inode_cb , maxlen , readdir_cb , lookup_cb ) ; ( ( gfs_file_t * ) vp -> v_data ) -> gfs_ino = ino ; vp -> v_flag |= VROOT ; return ( vp ) ; }
gfs_root_create(): create a root vnode for a GFS filesystem
 Similar to gfs_dir_create(), this creates a root vnode for a filesystem.
gfs_root_create () : create a root vnode for a GFS filesystem Similar to gfs_dir_create () this creates a root vnode for a filesystem .
/* Manually set the inode */