diff options
author | Miklos Szeredi <miklos@szeredi.hu> | 2005-08-01 12:48:30 +0000 |
---|---|---|
committer | Miklos Szeredi <miklos@szeredi.hu> | 2005-08-01 12:48:30 +0000 |
commit | 7b28eaeac5f2d8d591b1b0c94e10b64644017869 (patch) | |
tree | b59344f5b9261da640b0e21ac398093755fdfbae /lib/fuse_lowlevel.c | |
parent | e77cc07e755c1e360455e707653f705d0bd25622 (diff) | |
download | libfuse-7b28eaeac5f2d8d591b1b0c94e10b64644017869.tar.gz |
fix
Diffstat (limited to 'lib/fuse_lowlevel.c')
-rw-r--r-- | lib/fuse_lowlevel.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/fuse_lowlevel.c b/lib/fuse_lowlevel.c index 98ce673..9df0e09 100644 --- a/lib/fuse_lowlevel.c +++ b/lib/fuse_lowlevel.c @@ -81,6 +81,7 @@ static const char *opname(enum fuse_opcode opcode) case FUSE_GETLK: return "GETLK"; case FUSE_SETLK: return "SETLK"; case FUSE_SETLKW: return "SETLKW"; + case FUSE_ACCESS: return "ACCESS"; default: return "???"; } } @@ -430,6 +431,14 @@ static void do_setattr(fuse_req_t req, fuse_ino_t nodeid, fuse_reply_err(req, ENOSYS); } +static void do_access(fuse_req_t req, fuse_ino_t nodeid, + struct fuse_access_in *arg) +{ + if (req->f->op.access) + req->f->op.access(req, nodeid, arg->mask); + else + fuse_reply_err(req, ENOSYS); +} static void do_readlink(fuse_req_t req, fuse_ino_t nodeid) { if (req->f->op.readlink) @@ -927,6 +936,10 @@ void fuse_ll_process_cmd(struct fuse_ll *f, struct fuse_cmd *cmd) case FUSE_SETLKW: do_setlk(req, in->nodeid, 1, (struct fuse_lk_in_out *) inarg); break; + + case FUSE_ACCESS: + do_access(req, in->nodeid, (struct fuse_access_in *) inarg); + break; default: fuse_reply_err(req, ENOSYS); |