FreeBSD/sys/cddl/contrib/opensolaris/uts/common/fs/gfs.c
/*
 * gfs_root_create_file(): create a root vnode for a GFS file as a filesystem
 *
 * Similar to gfs_root_create(), this creates a root vnode for a file to
 * be the pseudo-filesystem.
 */
create a root vnode for a GFS file as a filesystem
Similar to gfs_root_create(), this creates a root vnode for a file to
be the pseudo-filesystem.
create a root vnode for a GFS file as a filesystem Similar to gfs_root_create () this creates a root vnode for a file to be the pseudo - filesystem .
vnode_t *
gfs_root_create_file(size_t size, vfs_t *vfsp, vnodeops_t *ops, ino64_t ino)
{
	vnode_t	*vp = gfs_file_create(size, NULL, ops);
	((gfs_file_t *)vp->v_data)->gfs_ino = ino;
	VFS_HOLD(vfsp);
	VN_SET_VFS_TYPE_DEV(vp, vfsp, VREG, 0);
	vp->v_flag |= VROOT | VNOCACHE | VNOMAP | VNOSWAP | VNOMOUNT;
	return (vp);
}
vnode_t * gfs_root_create_file ( size_t size , vfs_t * vfsp , vnodeops_t * ops , ino64_t ino ) { vnode_t * vp = gfs_file_create ( size , NULL , ops ) ; ( ( gfs_file_t * ) vp -> v_data ) -> gfs_ino = ino ; VFS_HOLD ( vfsp ) ; VN_SET_VFS_TYPE_DEV ( vp , vfsp , VREG , 0 ) ; vp -> v_flag |= VROOT | VNOCACHE | VNOMAP | VNOSWAP | VNOMOUNT ; return ( vp ) ; }
gfs_root_create_file(): create a root vnode for a GFS file as a filesystem
 Similar to gfs_root_create(), this creates a root vnode for a file to
 be the pseudo-filesystem.
gfs_root_create_file () : create a root vnode for a GFS file as a filesystem Similar to gfs_root_create () this creates a root vnode for a file to be the pseudo - filesystem .