Changeset View
Changeset View
Standalone View
Standalone View
sys/fs/nfsclient/nfs_clvfsops.c
Show First 20 Lines • Show All 130 Lines • ▼ Show 20 Lines | |||||
/* | /* | ||||
* nfs vfs operations. | * nfs vfs operations. | ||||
*/ | */ | ||||
static struct vfsops nfs_vfsops = { | static struct vfsops nfs_vfsops = { | ||||
.vfs_init = ncl_init, | .vfs_init = ncl_init, | ||||
.vfs_mount = nfs_mount, | .vfs_mount = nfs_mount, | ||||
.vfs_cmount = nfs_cmount, | .vfs_cmount = nfs_cmount, | ||||
.vfs_root = nfs_root, | .vfs_root = vfs_cache_root, | ||||
.vfs_cachedroot = nfs_root, | |||||
.vfs_statfs = nfs_statfs, | .vfs_statfs = nfs_statfs, | ||||
.vfs_sync = nfs_sync, | .vfs_sync = nfs_sync, | ||||
.vfs_uninit = ncl_uninit, | .vfs_uninit = ncl_uninit, | ||||
.vfs_unmount = nfs_unmount, | .vfs_unmount = nfs_unmount, | ||||
.vfs_sysctl = nfs_sysctl, | .vfs_sysctl = nfs_sysctl, | ||||
.vfs_purge = nfs_purge, | .vfs_purge = nfs_purge, | ||||
}; | }; | ||||
VFS_SET(nfs_vfsops, nfs, VFCF_NETWORK | VFCF_SBDRY); | VFS_SET(nfs_vfsops, nfs, VFCF_NETWORK | VFCF_SBDRY); | ||||
▲ Show 20 Lines • Show All 1,473 Lines • ▼ Show 20 Lines | if ((argp->flags & NFSMNT_NFSV4) != 0 && nfsrv_useacl != 0 && | ||||
mp->mnt_flag |= MNT_NFS4ACLS; | mp->mnt_flag |= MNT_NFS4ACLS; | ||||
MNT_IUNLOCK(mp); | MNT_IUNLOCK(mp); | ||||
} | } | ||||
/* | /* | ||||
* Lose the lock but keep the ref. | * Lose the lock but keep the ref. | ||||
*/ | */ | ||||
NFSVOPUNLOCK(*vpp, 0); | NFSVOPUNLOCK(*vpp, 0); | ||||
vfs_cache_root_set(mp, *vpp); | |||||
return (0); | return (0); | ||||
} | } | ||||
error = EIO; | error = EIO; | ||||
bad: | bad: | ||||
if (clp != NULL) | if (clp != NULL) | ||||
nfscl_clientrelease(clp); | nfscl_clientrelease(clp); | ||||
newnfs_disconnect(&nmp->nm_sockreq); | newnfs_disconnect(&nmp->nm_sockreq); | ||||
▲ Show 20 Lines • Show All 416 Lines • Show Last 20 Lines |