diff options
Diffstat (limited to 'example/cuse.c')
-rw-r--r-- | example/cuse.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/example/cuse.c b/example/cuse.c index 0c0e7bc..6b33302 100644 --- a/example/cuse.c +++ b/example/cuse.c @@ -87,6 +87,14 @@ static int cusexmp_expand(size_t new_size) return 0; } +static void cusexmp_init(void *userdata, struct fuse_conn_info *conn) +{ + (void)userdata; + + /* Disable the receiving and processing of FUSE_INTERRUPT requests */ + conn->no_interrupt = 1; +} + static void cusexmp_open(fuse_req_t req, struct fuse_file_info *fi) { fuse_reply_open(req, fi); @@ -281,6 +289,7 @@ static int cusexmp_process_arg(void *data, const char *arg, int key, } static const struct cuse_lowlevel_ops cusexmp_clop = { + .init = cusexmp_init, .open = cusexmp_open, .read = cusexmp_read, .write = cusexmp_write, |