mirror of
https://github.com/minio/minio.git
synced 2025-11-07 04:42:56 -05:00
Posix CreateFile should work for compressed lengths (#7584)
This commit is contained in:
committed by
kannappanr
parent
a436f2baa5
commit
c113d4e49c
@@ -103,6 +103,9 @@ func (e *Erasure) ShardFileSize(totalLength int64) int64 {
|
||||
if totalLength == 0 {
|
||||
return 0
|
||||
}
|
||||
if totalLength == -1 {
|
||||
return -1
|
||||
}
|
||||
numShards := totalLength / e.blockSize
|
||||
lastBlockSize := totalLength % int64(e.blockSize)
|
||||
lastShardSize := ceilFrac(lastBlockSize, int64(e.dataBlocks))
|
||||
|
||||
Reference in New Issue
Block a user