Changeset View
Changeset View
Standalone View
Standalone View
sys/fs/nfsserver/nfs_nfsdport.c
Show First 20 Lines • Show All 1,263 Lines • ▼ Show 20 Lines | nfsvno_removesub(struct nameidata *ndp, int is_v4, struct ucred *cred, | ||||
return (error); | return (error); | ||||
} | } | ||||
/* | /* | ||||
* Remove a directory. | * Remove a directory. | ||||
*/ | */ | ||||
int | int | ||||
nfsvno_rmdirsub(struct nameidata *ndp, int is_v4, struct ucred *cred, | nfsvno_rmdirsub(struct nameidata *ndp, int is_v4, struct ucred *cred, | ||||
struct thread *p, struct nfsexstuff *exp) | struct nfsexstuff *exp) | ||||
{ | { | ||||
struct vnode *vp; | struct vnode *vp; | ||||
int error = 0; | int error = 0; | ||||
vp = ndp->ni_vp; | vp = ndp->ni_vp; | ||||
if (vp->v_type != VDIR) { | if (vp->v_type != VDIR) { | ||||
error = ENOTDIR; | error = ENOTDIR; | ||||
goto out; | goto out; | ||||
▲ Show 20 Lines • Show All 4,559 Lines • Show Last 20 Lines |