From a85183d42cea799a1994025390e03d345c465a5f Mon Sep 17 00:00:00 2001 From: Andrew Gaul Date: Mon, 10 Sep 2018 22:21:51 -0700 Subject: [PATCH] Enable big writes if capable Fixes #813. --- src/s3fs.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/s3fs.cpp b/src/s3fs.cpp index d5dba1a..eff4cb4 100644 --- a/src/s3fs.cpp +++ b/src/s3fs.cpp @@ -3420,6 +3420,10 @@ static void* s3fs_init(struct fuse_conn_info* conn) } #endif + if((unsigned int)conn->capable & FUSE_CAP_BIG_WRITES){ + conn->want |= FUSE_CAP_BIG_WRITES; + } + return NULL; }