zfs_vfsops.c (219089) | zfs_vfsops.c (222167) |
---|---|
1/* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License (the "License"). 6 * You may not use this file except in compliance with the License. 7 * 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE --- 79 unchanged lines hidden (view full) --- 88static int zfs_mount(vfs_t *vfsp); 89static int zfs_umount(vfs_t *vfsp, int fflag); 90static int zfs_root(vfs_t *vfsp, int flags, vnode_t **vpp); 91static int zfs_statfs(vfs_t *vfsp, struct statfs *statp); 92static int zfs_vget(vfs_t *vfsp, ino_t ino, int flags, vnode_t **vpp); 93static int zfs_sync(vfs_t *vfsp, int waitfor); 94static int zfs_checkexp(vfs_t *vfsp, struct sockaddr *nam, int *extflagsp, 95 struct ucred **credanonp, int *numsecflavors, int **secflavors); | 1/* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License (the "License"). 6 * You may not use this file except in compliance with the License. 7 * 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE --- 79 unchanged lines hidden (view full) --- 88static int zfs_mount(vfs_t *vfsp); 89static int zfs_umount(vfs_t *vfsp, int fflag); 90static int zfs_root(vfs_t *vfsp, int flags, vnode_t **vpp); 91static int zfs_statfs(vfs_t *vfsp, struct statfs *statp); 92static int zfs_vget(vfs_t *vfsp, ino_t ino, int flags, vnode_t **vpp); 93static int zfs_sync(vfs_t *vfsp, int waitfor); 94static int zfs_checkexp(vfs_t *vfsp, struct sockaddr *nam, int *extflagsp, 95 struct ucred **credanonp, int *numsecflavors, int **secflavors); |
96static int zfs_fhtovp(vfs_t *vfsp, fid_t *fidp, vnode_t **vpp); | 96static int zfs_fhtovp(vfs_t *vfsp, fid_t *fidp, int flags, vnode_t **vpp); |
97static void zfs_objset_close(zfsvfs_t *zfsvfs); 98static void zfs_freevfs(vfs_t *vfsp); 99 100static struct vfsops zfs_vfsops = { 101 .vfs_mount = zfs_mount, 102 .vfs_unmount = zfs_umount, 103 .vfs_root = zfs_root, 104 .vfs_statfs = zfs_statfs, --- 1897 unchanged lines hidden (view full) --- 2002 return (vfs_stdcheckexp(zfsvfs->z_parent->z_vfs, nam, extflagsp, 2003 credanonp, numsecflavors, secflavors)); 2004} 2005 2006CTASSERT(SHORT_FID_LEN <= sizeof(struct fid)); 2007CTASSERT(LONG_FID_LEN <= sizeof(struct fid)); 2008 2009static int | 97static void zfs_objset_close(zfsvfs_t *zfsvfs); 98static void zfs_freevfs(vfs_t *vfsp); 99 100static struct vfsops zfs_vfsops = { 101 .vfs_mount = zfs_mount, 102 .vfs_unmount = zfs_umount, 103 .vfs_root = zfs_root, 104 .vfs_statfs = zfs_statfs, --- 1897 unchanged lines hidden (view full) --- 2002 return (vfs_stdcheckexp(zfsvfs->z_parent->z_vfs, nam, extflagsp, 2003 credanonp, numsecflavors, secflavors)); 2004} 2005 2006CTASSERT(SHORT_FID_LEN <= sizeof(struct fid)); 2007CTASSERT(LONG_FID_LEN <= sizeof(struct fid)); 2008 2009static int |
2010zfs_fhtovp(vfs_t *vfsp, fid_t *fidp, vnode_t **vpp) | 2010zfs_fhtovp(vfs_t *vfsp, fid_t *fidp, int flags, vnode_t **vpp) |
2011{ 2012 zfsvfs_t *zfsvfs = vfsp->vfs_data; 2013 znode_t *zp; 2014 uint64_t object = 0; 2015 uint64_t fid_gen = 0; 2016 uint64_t gen_mask; 2017 uint64_t zp_gen; 2018 int i, err; --- 386 unchanged lines hidden --- | 2011{ 2012 zfsvfs_t *zfsvfs = vfsp->vfs_data; 2013 znode_t *zp; 2014 uint64_t object = 0; 2015 uint64_t fid_gen = 0; 2016 uint64_t gen_mask; 2017 uint64_t zp_gen; 2018 int i, err; --- 386 unchanged lines hidden --- |