aboutsummaryrefslogtreecommitdiffstats
path: root/lib/fuse_i.h
diff options
context:
space:
mode:
authorBernd Schubert <bschubert@ddn.com>2025-03-07 22:43:50 +0100
committerBernd Schubert <bernd@bsbernd.com>2025-04-15 00:50:26 +0200
commite65395521bae162b72f038f02ccbe5686f7bf88c (patch)
tree3d746101bad6ff262ee9b4884b435937151d6096 /lib/fuse_i.h
parent15bb63bbebc7bd11871f60e9c535035e158eb065 (diff)
downloadlibfuse-e65395521bae162b72f038f02ccbe5686f7bf88c.tar.gz
fuse_session_receive_buf: Fix the pipe buf size
This fixes dynamic buffer allocation in commit 0e0f43b79b9b ("Reallocate fuse_session buffer...") I noticed that when I increased the default fuse buf size as possible in recent kernels. Signed-off-by: Bernd Schubert <bschubert@ddn.com>
Diffstat (limited to 'lib/fuse_i.h')
-rw-r--r--lib/fuse_i.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/fuse_i.h b/lib/fuse_i.h
index 6fbfc2d..ee0d298 100644
--- a/lib/fuse_i.h
+++ b/lib/fuse_i.h
@@ -75,14 +75,14 @@ struct fuse_session {
int broken_splice_nonblock;
uint64_t notify_ctr;
struct fuse_notify_req notify_list;
- size_t bufsize;
+ _Atomic size_t bufsize;
int error;
/* This is useful if any kind of ABI incompatibility is found at
* a later version, to 'fix' it at run time.
*/
struct libfuse_version version;
- bool buf_reallocable;
+ _Atomic bool buf_reallocable;
};
struct fuse_chan {