diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/fuse.h | 1 | ||||
-rw-r--r-- | include/fuse_common.h | 30 |
2 files changed, 31 insertions, 0 deletions
diff --git a/include/fuse.h b/include/fuse.h index 37aec28..6af2c4f 100644 --- a/include/fuse.h +++ b/include/fuse.h @@ -300,6 +300,7 @@ struct fuse_operations { * destroy() method. * * Introduced in version 2.3 + * Changed in version 2.6 */ void *(*init) (struct fuse_conn_info *conn); diff --git a/include/fuse_common.h b/include/fuse_common.h index b687043..8dc7bc2 100644 --- a/include/fuse_common.h +++ b/include/fuse_common.h @@ -74,12 +74,42 @@ struct fuse_file_info { uint64_t lock_owner; }; +/** + * Connection information, passed to the ->init() method + * + * Some of the elements are read-write, these can be changed to + * indicate the value requested by the filesystem. The requested + * value must usually be smaller than the indicated value. + */ struct fuse_conn_info { + /** + * Major version of the protocol (read-only) + */ unsigned proto_major; + + /** + * Minor version of the protocol (read-only) + */ unsigned proto_minor; + + /** + * Is asynchronous read supported (read-write) + */ unsigned async_read; + + /** + * Maximum size of the write buffer + */ unsigned max_write; + + /** + * Maximum readahead + */ unsigned max_readahead; + + /** + * For future use. + */ unsigned reserved[27]; }; |