From ad029c095c134cac0c96f7c4d9fe881a1fc1664f Mon Sep 17 00:00:00 2001 From: Nikolaus Rath Date: Thu, 24 Aug 2017 21:08:25 +0200 Subject: [PATCH] passthrough_ll: only active EXPORT_SUPPORT of supported by kernel. --- example/passthrough_ll.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) { -- 2.30.2