Files
threshold/internal/storage/block_size.go
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
449 B
Go
Raw Normal View History

2024-01-08 19:21:56 -05:00
// 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