aboutsummaryrefslogtreecommitdiff
path: root/lib/fuse_i.h
diff options
context:
space:
mode:
authorGravatar Nikolaus Rath <Nikolaus@rath.org>2016-10-10 20:21:45 -0700
committerGravatar Nikolaus Rath <Nikolaus@rath.org>2016-10-13 10:35:12 -0700
commit17b23ac3a5149eeb4d38d4830d9c5c80059ffdc3 (patch)
tree18d16899ce2e988d3c8221713eae794346b0c190 /lib/fuse_i.h
parentfcc7eb01914ffdec3b83ec4fb77f71fa08284a36 (diff)
Move session options into sub-struct
The session options are used only once to determine the proper conn->want flags. It is nice to have them clearly separated from the other struct fuse_session members that are used throughout the life of the file system.
Diffstat (limited to 'lib/fuse_i.h')
-rw-r--r--lib/fuse_i.h21
1 files changed, 12 insertions, 9 deletions
diff --git a/lib/fuse_i.h b/lib/fuse_i.h
index c8aa279..9f11da7 100644
--- a/lib/fuse_i.h
+++ b/lib/fuse_i.h
@@ -41,14 +41,7 @@ struct fuse_notify_req {
struct fuse_notify_req *prev;
};
-struct fuse_session {
- char *mountpoint;
- volatile int exited;
- int fd;
- struct mount_opts *mo;
-
- int debug;
- int allow_root;
+struct session_opts {
int atomic_o_trunc;
int no_remote_posix_lock;
int no_remote_flock;
@@ -66,9 +59,18 @@ struct fuse_session {
int no_async_dio;
int writeback_cache;
int no_writeback_cache;
- int clone_fd;
int async_read;
int sync_read;
+};
+
+struct fuse_session {
+ char *mountpoint;
+ volatile int exited;
+ int fd;
+ struct mount_opts *mo;
+ struct session_opts opts;
+ int debug;
+ int allow_root;
struct fuse_lowlevel_ops op;
int got_init;
struct cuse_data *cuse_data;
@@ -84,6 +86,7 @@ struct fuse_session {
uint64_t notify_ctr;
struct fuse_notify_req notify_list;
size_t bufsize;
+ int clone_fd;
};
struct fuse_chan {