Changeset View
Changeset View
Standalone View
Standalone View
sys/fs/nfsserver/nfs_nfsdserv.c
Show First 20 Lines • Show All 1,486 Lines • ▼ Show 20 Lines | if (!(nd->nd_flag & ND_NFSV2)) { | ||||
vrele(dirp); | vrele(dirp); | ||||
dirp = NULL; | dirp = NULL; | ||||
} | } | ||||
} | } | ||||
if (!nd->nd_repstat) { | if (!nd->nd_repstat) { | ||||
if (nd->nd_flag & ND_NFSV4) { | if (nd->nd_flag & ND_NFSV4) { | ||||
if (vnode_vtype(named.ni_vp) == VDIR) | if (vnode_vtype(named.ni_vp) == VDIR) | ||||
nd->nd_repstat = nfsvno_rmdirsub(&named, 1, | nd->nd_repstat = nfsvno_rmdirsub(&named, 1, | ||||
nd->nd_cred, p, exp); | nd->nd_cred, exp); | ||||
else | else | ||||
nd->nd_repstat = nfsvno_removesub(&named, 1, | nd->nd_repstat = nfsvno_removesub(&named, 1, | ||||
nd->nd_cred, p, exp); | nd->nd_cred, p, exp); | ||||
} else if (nd->nd_procnum == NFSPROC_RMDIR) { | } else if (nd->nd_procnum == NFSPROC_RMDIR) { | ||||
nd->nd_repstat = nfsvno_rmdirsub(&named, 0, | nd->nd_repstat = nfsvno_rmdirsub(&named, 0, | ||||
nd->nd_cred, p, exp); | nd->nd_cred, exp); | ||||
} else { | } else { | ||||
nd->nd_repstat = nfsvno_removesub(&named, 0, | nd->nd_repstat = nfsvno_removesub(&named, 0, | ||||
nd->nd_cred, p, exp); | nd->nd_cred, p, exp); | ||||
} | } | ||||
} | } | ||||
if (!(nd->nd_flag & ND_NFSV2)) { | if (!(nd->nd_flag & ND_NFSV2)) { | ||||
if (dirp) { | if (dirp) { | ||||
diraft_ret = nfsvno_getattr(dirp, &diraft, nd, p, 0, | diraft_ret = nfsvno_getattr(dirp, &diraft, nd, p, 0, | ||||
▲ Show 20 Lines • Show All 3,310 Lines • Show Last 20 Lines |