From c3d30f931a1bfd201b30eb3a43ac1b7021fb4ce6 Mon Sep 17 00:00:00 2001 From: Nikolaus Rath Date: Wed, 15 Mar 2017 16:44:03 -0700 Subject: passthrough_fh: declare support for . and .. lookups. --- example/passthrough_ll.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'example') 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, -- cgit v1.2.3