projects
/
qemu-gpiodev
/
libfuse.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ee0b295
)
passthrough_fh: declare support for . and .. lookups.
author
Nikolaus Rath
<Nikolaus@rath.org>
Wed, 15 Mar 2017 23:44:03 +0000
(16:44 -0700)
committer
Nikolaus Rath
<Nikolaus@rath.org>
Wed, 15 Mar 2017 23:49:27 +0000
(16:49 -0700)
example/passthrough_ll.c
patch
|
blob
|
history
diff --git
a/example/passthrough_ll.c
b/example/passthrough_ll.c
index b40cf76a43f256e77d168566dd91eb11c323a8dc..b31160eb6ed6e4a16bf72a43979b139530776304 100644
(file)
--- 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,