diff options
author | Joanne Koong <joannelkoong@gmail.com> | 2024-07-17 13:42:14 -0700 |
---|---|---|
committer | Bernd Schubert <bernd@bsbernd.com> | 2025-04-30 15:12:01 +0200 |
commit | 84a27de6a644163eda97b7052e064774ec73f925 (patch) | |
tree | bdceee3c162969dd6da48c96ec29420bb5b3da96 /include/fuse_common.h | |
parent | cd503168287e82e1698fb2fdf6397f1dbb751e75 (diff) | |
download | libfuse-84a27de6a644163eda97b7052e064774ec73f925.tar.gz |
Support request timeouts
This adds the libfuse changes needed to support request timeouts.
A timeout may be set by the server in its init call. If a request is not
completed by the timeout, the connection will be aborted by the kernel.
Signed-off-by: Joanne Koong <joannelkoong@gmail.com>
Diffstat (limited to 'include/fuse_common.h')
-rw-r--r-- | include/fuse_common.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/fuse_common.h b/include/fuse_common.h index 249e0c9..0b0ea4c 100644 --- a/include/fuse_common.h +++ b/include/fuse_common.h @@ -709,9 +709,15 @@ struct fuse_conn_info { uint64_t want_ext; /** + * Request timeout (in seconds). If the request is not answered by + * this timeout, the connection will be aborted by the kernel. + */ + uint16_t request_timeout; + + /** * For future use. */ - uint32_t reserved[16]; + uint16_t reserved[31]; }; fuse_static_assert(sizeof(struct fuse_conn_info) == 128, "Size of struct fuse_conn_info must be 128 bytes"); |