mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2024-11-13 07:56:30 +00:00
Return EFBIG when file exceeds multipart limit (#1600)
Found via pjdfstests. References #1589.
This commit is contained in:
parent
20a6c9d35d
commit
f6fbd75320
@ -1251,7 +1251,7 @@ int FdEntity::RowFlush(const char* tpath, bool force_sync)
|
||||
if(pagelist.Size() > MAX_MULTIPART_CNT * S3fsCurl::GetMultipartSize()){
|
||||
// close f ?
|
||||
S3FS_PRN_ERR("Part count exceeds %d. Increase multipart size and try again.", MAX_MULTIPART_CNT);
|
||||
return -ENOTSUP;
|
||||
return -EFBIG;
|
||||
}
|
||||
|
||||
// seek to head of file.
|
||||
|
Loading…
Reference in New Issue
Block a user