passthrough_fh: declare support for . and .. lookups.
authorNikolaus Rath <Nikolaus@rath.org>
Wed, 15 Mar 2017 23:44:03 +0000 (16:44 -0700)
committerNikolaus Rath <Nikolaus@rath.org>
Wed, 15 Mar 2017 23:49:27 +0000 (16:49 -0700)
example/passthrough_ll.c

index b40cf76a43f256e77d168566dd91eb11c323a8dc..b31160eb6ed6e4a16bf72a43979b139530776304 100644 (file)
@@ -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,