Changeset View
Changeset View
Standalone View
Standalone View
head/sys/nlm/nlm_prot_impl.c
Show First 20 Lines • Show All 1,729 Lines • ▼ Show 20 Lines | struct vfs_state { | ||||
struct vnode *vs_vp; | struct vnode *vs_vp; | ||||
int vs_vnlocked; | int vs_vnlocked; | ||||
}; | }; | ||||
static int | static int | ||||
nlm_get_vfs_state(struct nlm_host *host, struct svc_req *rqstp, | nlm_get_vfs_state(struct nlm_host *host, struct svc_req *rqstp, | ||||
fhandle_t *fhp, struct vfs_state *vs, accmode_t accmode) | fhandle_t *fhp, struct vfs_state *vs, accmode_t accmode) | ||||
{ | { | ||||
int error, exflags; | int error; | ||||
uint64_t exflags; | |||||
struct ucred *cred = NULL, *credanon = NULL; | struct ucred *cred = NULL, *credanon = NULL; | ||||
memset(vs, 0, sizeof(*vs)); | memset(vs, 0, sizeof(*vs)); | ||||
vs->vs_mp = vfs_getvfs(&fhp->fh_fsid); | vs->vs_mp = vfs_getvfs(&fhp->fh_fsid); | ||||
if (!vs->vs_mp) { | if (!vs->vs_mp) { | ||||
return (ESTALE); | return (ESTALE); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 670 Lines • Show Last 20 Lines |