diff --git a/internal/storage/block_size.go b/internal/storage/block_size.go new file mode 100644 index 000000000..9fdd6550d --- /dev/null +++ b/internal/storage/block_size.go @@ -0,0 +1,12 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: BUSL-1.1 + +package storage + +const KB uint64 = 1024 + +// LogicalBlockSize represents a single logical address, which is equivalent to 4,096 bytes (4 KiB) +// +// A logical block is the minimum block that any file can allocate. Large files consist of multiple blocks. +// More information can be found here: https://en.wikipedia.org/wiki/Logical_block_addressing +const LogicalBlockSize = 4 * KB