aboutsummaryrefslogtreecommitdiffstats
path: root/lib/fuse.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.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.c')
-rw-r--r--lib/fuse.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/fuse.c b/lib/fuse.c
index 6e3c431..401a263 100644
--- a/lib/fuse.c
+++ b/lib/fuse.c
@@ -2196,8 +2196,9 @@ int fuse_fs_poll(struct fuse_fs *fs, const char *path,
int res;
if (fs->debug)
- fprintf(stderr, "poll[%llu] ph: %p\n",
- (unsigned long long) fi->fh, ph);
+ fprintf(stderr, "poll[%llu] ph: %p, events 0x%x\n",
+ (unsigned long long) fi->fh, ph,
+ fi->poll_events);
res = fs->op.poll(path, fi, ph, reventsp);