feat: create default logical block size

This commit is contained in:
Elim Tsiagbey committed 2024-01-11 09:58:32 -05:00
1 parent dbb077e898
commit fd385089e8
1 file changed
+12
+12
View File
@@ -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