diff options
author | Nikolaus Rath <Nikolaus@rath.org> | 2017-03-15 16:44:03 -0700 |
---|---|---|
committer | Nikolaus Rath <Nikolaus@rath.org> | 2017-03-15 16:49:27 -0700 |
commit | c3d30f931a1bfd201b30eb3a43ac1b7021fb4ce6 (patch) | |
tree | 24fdb0c92be7f96a426d736684113484b82dd28b /example | |
parent | ee0b29552ae92a6d991b02c778377fda6bfbfac5 (diff) |
passthrough_fh: declare support for . and .. lookups.
Diffstat (limited to 'example')
-rw-r--r-- | example/passthrough_ll.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/example/passthrough_ll.c b/example/passthrough_ll.c index b40cf76..b31160e 100644 --- a/example/passthrough_ll.c +++ b/example/passthrough_ll.c @@ -122,6 +122,13 @@ static bool lo_debug(fuse_req_t req) return lo_data(req)->debug != 0; } +static void lo_init(void *userdata, + struct fuse_conn_info *conn) +{ + (void) userdata; + conn->want |= FUSE_CAP_EXPORT_SUPPORT; +} + static void lo_getattr(fuse_req_t req, fuse_ino_t ino, struct fuse_file_info *fi) { @@ -443,6 +450,7 @@ static void lo_read(fuse_req_t req, fuse_ino_t ino, size_t size, } static struct fuse_lowlevel_ops lo_oper = { + .init = lo_init, .lookup = lo_lookup, .forget = lo_forget, .getattr = lo_getattr, |