aboutsummaryrefslogtreecommitdiffstats
path: root/lib/fuse_lowlevel.c
diff options
context:
space:
mode:
authorEnke Chen <enkechen@yahoo.com>2013-02-07 14:58:50 +0100
committerMiklos Szeredi <mszeredi@suse.cz>2013-02-07 14:58:50 +0100
commit74f9acbd18c55708698831b4cfb980c262ee91ee (patch)
tree2527f09b765a8b111135fbe90a9e83c92cbb78ca /lib/fuse_lowlevel.c
parentf448ac69d1791f4b5c1ce2771624e261cb1797b4 (diff)
downloadlibfuse-74f9acbd18c55708698831b4cfb980c262ee91ee.tar.gz
libfuse: add poll_events to fuse_file_info
Make requested poll events available to the filesystem. If the requested eventsare not available, then this field is zero.
Diffstat (limited to 'lib/fuse_lowlevel.c')
-rw-r--r--lib/fuse_lowlevel.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/fuse_lowlevel.c b/lib/fuse_lowlevel.c
index feaa076..2ac9aab 100644
--- a/lib/fuse_lowlevel.c
+++ b/lib/fuse_lowlevel.c
@@ -1746,6 +1746,7 @@ static void do_poll(fuse_req_t req, fuse_ino_t nodeid, const void *inarg)
memset(&fi, 0, sizeof(fi));
fi.fh = arg->fh;
fi.fh_old = fi.fh;
+ fi.poll_events = arg->events;
if (req->f->op.poll) {
struct fuse_pollhandle *ph = NULL;