Return EFBIG when file exceeds multipart limit (#1600)

Found via pjdfstests.  References #1589.
This commit is contained in:
Andrew Gaul 2021-03-28 12:33:01 +09:00 committed by GitHub
parent 20a6c9d35d
commit f6fbd75320
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.