Documentation ¶
Overview ¶
Package lba provides a library for working with Logical Block Addresses.
Index ¶
Constants ¶
View Source
const ( BLKIOMIN = 0x1278 BLKIOOPT = 0x1279 )
These newer ioctl magic values are not available from unix yet.
View Source
const RecommendedAlignment = 1048576
RecommendedAlignment is recommended alignment for LBA.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LBA ¶ added in v0.1.1
type LBA struct { PhysicalBlockSize int64 LogicalBlockSize int64 MinimalIOSize int64 OptimalIOSize int64 TotalSectors int64 // contains filtered or unexported fields }
LBA represents logical block addressing.
func (*LBA) AlignToPhysicalBlockSize ¶ added in v0.2.1
AlignToPhysicalBlockSize aligns LBA value in LogicalBlockSize multiples to be aligned to PhysicalBlockSize.
Click to show internal directories.
Click to hide internal directories.