From bdeb3faf5e9cdbfd07e8c53ca8c6c3f6a545a04d Mon Sep 17 00:00:00 2001 From: pingqiu Date: Wed, 18 Nov 2026 22:29:44 -0800 Subject: [PATCH] docs(geometry): state the block-size assumption behind the byte cap --- seaweed-block/core/geometry/volume_size.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/seaweed-block/core/geometry/volume_size.go b/seaweed-block/core/geometry/volume_size.go index 0d317ede02..0d7aaeea92 100644 --- a/seaweed-block/core/geometry/volume_size.go +++ b/seaweed-block/core/geometry/volume_size.go @@ -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