From 73b6ff4b75cf1228ea61262c293fcb2fda5dfeea Mon Sep 17 00:00:00 2001 From: Nikolaus Rath Date: Sat, 15 Oct 2016 18:46:27 -0700 Subject: Pass fuse_file_info to getattr, chown, chmod, truncate, utimens handlers This obsoletes the ftruncate & fgetattr handlers. Fixes #58. --- example/poll.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'example/poll.c') diff --git a/example/poll.c b/example/poll.c index 61c5365..10175a3 100644 --- a/example/poll.c +++ b/example/poll.c @@ -64,8 +64,10 @@ static int fsel_path_index(const char *path) return ch <= '9' ? ch - '0' : ch - 'A' + 10; } -static int fsel_getattr(const char *path, struct stat *stbuf) +static int fsel_getattr(const char *path, struct stat *stbuf, + struct fuse_file_info *fi) { + (void) fi; int idx; memset(stbuf, 0, sizeof(struct stat)); -- cgit v1.2.3