aboutsummaryrefslogtreecommitdiff
path: root/example
diff options
context:
space:
mode:
authorGravatar Nikolaus Rath <Nikolaus@rath.org>2017-08-24 21:08:25 +0200
committerGravatar Nikolaus Rath <Nikolaus@rath.org>2017-08-24 21:08:25 +0200
commitad029c095c134cac0c96f7c4d9fe881a1fc1664f (patch)
treefc4bb74ad0dfc774abfc508fcae90a9cbc0a7a7a /example
parent53de0adb1a8f99dcd6d6af9a2c2f3547e1cfeb2b (diff)
passthrough_ll: only active EXPORT_SUPPORT of supported by kernel.
Diffstat (limited to 'example')
-rw-r--r--example/passthrough_ll.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/example/passthrough_ll.c b/example/passthrough_ll.c
index 65ab0f3..b68f086 100644
--- a/example/passthrough_ll.c
+++ b/example/passthrough_ll.c
@@ -118,7 +118,9 @@ static void lo_init(void *userdata,
struct fuse_conn_info *conn)
{
struct lo_data *lo = (struct lo_data*) userdata;
- conn->want |= FUSE_CAP_EXPORT_SUPPORT;
+
+ if(conn->capable & FUSE_CAP_EXPORT_SUPPORT)
+ conn->want |= FUSE_CAP_EXPORT_SUPPORT;
if (lo->writeback &&
conn->capable & FUSE_CAP_WRITEBACK_CACHE) {