From ed85b72bf5eb99209211b43d1b5441f0fbd2de04 Mon Sep 17 00:00:00 2001 From: Carsten Grohmann Date: Wed, 27 Jan 2021 21:07:45 +0100 Subject: [PATCH] Add warning for failing metadata updates of large files Metadata updates fail for large files if "-o nocopyapi" or "-o nomultipart" is set. This change is related to #1528 --- src/s3fs.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/s3fs.cpp b/src/s3fs.cpp index 04686d4..812a576 100644 --- a/src/s3fs.cpp +++ b/src/s3fs.cpp @@ -729,6 +729,7 @@ int put_headers(const char* path, headers_t& meta, bool is_copy, bool update_mti if(buf.st_size >= FIVE_GB){ // multipart if(nocopyapi || nomultipart){ + S3FS_PRN_WARN("Metadata update failed because the file is larger than 5GB and the options nocopyapi or nomultipart are set: [path=%s]", path); return -EFBIG; // File too large } if(0 != (result = s3fscurl.MultipartHeadRequest(path, buf.st_size, meta, is_copy))){