Changeset View
Changeset View
Standalone View
Standalone View
sys/fs/fuse/fuse_vnops.c
Show First 20 Lines • Show All 324 Lines • ▼ Show 20 Lines | |||||
{ | { | ||||
struct fuse_dispatcher fdi; | struct fuse_dispatcher fdi; | ||||
struct fuse_filehandle *fufh; | struct fuse_filehandle *fufh; | ||||
struct fuse_lseek_in *flsi; | struct fuse_lseek_in *flsi; | ||||
struct fuse_lseek_out *flso; | struct fuse_lseek_out *flso; | ||||
struct mount *mp = vnode_mount(vp); | struct mount *mp = vnode_mount(vp); | ||||
int err; | int err; | ||||
MPASS(VOP_ISLOCKED(vp)); | ASSERT_VOP_LOCKED(vp, __func__); | ||||
err = fuse_filehandle_getrw(vp, FREAD, &fufh, cred, pid); | err = fuse_filehandle_getrw(vp, FREAD, &fufh, cred, pid); | ||||
if (err) | if (err) | ||||
return (err); | return (err); | ||||
fdisp_init(&fdi, sizeof(*flsi)); | fdisp_init(&fdi, sizeof(*flsi)); | ||||
fdisp_make_vp(&fdi, FUSE_LSEEK, vp, td, cred); | fdisp_make_vp(&fdi, FUSE_LSEEK, vp, td, cred); | ||||
flsi = fdi.indata; | flsi = fdi.indata; | ||||
flsi->fh = fufh->fh_id; | flsi->fh = fufh->fh_id; | ||||
▲ Show 20 Lines • Show All 2,408 Lines • Show Last 20 Lines |