mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2024-11-10 14:50:58 +00:00
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
This commit is contained in:
parent
17fda89ae9
commit
ed85b72bf5
@ -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))){
|
||||
|
Loading…
Reference in New Issue
Block a user