aboutsummaryrefslogtreecommitdiffstats
path: root/example
diff options
context:
space:
mode:
Diffstat (limited to 'example')
-rw-r--r--example/hello.c5
-rw-r--r--example/hello_ll.c4
2 files changed, 9 insertions, 0 deletions
diff --git a/example/hello.c b/example/hello.c
index 6df8173..90919f4 100644
--- a/example/hello.c
+++ b/example/hello.c
@@ -57,6 +57,11 @@ static void *hello_init(struct fuse_conn_info *conn,
{
(void) conn;
cfg->kernel_cache = 1;
+
+ /* Test setting flags the old way */
+ conn->want = FUSE_CAP_ASYNC_READ;
+ conn->want &= ~FUSE_CAP_ASYNC_READ;
+
return NULL;
}
diff --git a/example/hello_ll.c b/example/hello_ll.c
index 0fcb7fe..12927cc 100644
--- a/example/hello_ll.c
+++ b/example/hello_ll.c
@@ -59,6 +59,10 @@ static void hello_ll_init(void *userdata, struct fuse_conn_info *conn)
/* Disable the receiving and processing of FUSE_INTERRUPT requests */
conn->no_interrupt = 1;
+
+ /* Test setting flags the old way */
+ conn->want = FUSE_CAP_ASYNC_READ;
+ conn->want &= ~FUSE_CAP_ASYNC_READ;
}
static void hello_ll_getattr(fuse_req_t req, fuse_ino_t ino,