mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-05 02:27:26 +01:00
docs(geometry): state the block-size assumption behind the byte cap
This commit is contained in:
1 parent
f9d9efc418
commit
bdeb3faf5e
1 file changed
+2
@@ -4,6 +4,8 @@ package geometry
|
||||
import "fmt"
|
||||
|
||||
// MaxVolumeBytes is the uint32-LBA limit with the supported 4-KiB IO unit.
|
||||
// This byte cap assumes that IO unit: support for another block size must
|
||||
// enforce min(MaxVolumeBytes, (2^32-1)*blockSize) at creation as well.
|
||||
const MaxVolumeBytes uint64 = (16 << 40) - 4096
|
||||
|
||||
// ValidateVolumeSize rejects an unsupported capacity before any allocation or
|
||||
|
||||
Reference in new issue
Block a user