Documentation ¶
Index ¶
Constants ¶
View Source
const ( // SectorUnit Sector is a linux constant, which is always 512, no matter how big your sectors or blocks // are. Please be careful since the terminology is ambiguous. source: https://github.com/asch/bs3/blob/master/internal/bs3/bs3.go SectorUnit = int64(512) )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Write ¶
type Write struct { Ext WriteExtent Buf []byte }
type WriteExtent ¶
type WriteExtent struct { Extent // Sequential number of write which wrote this extent SeqNo int64 // Reserved for future usage. Flag int64 }
WriteExtent Logical extent representation of the write message.
func ParseExtent ¶
func ParseExtent(b []byte, blockSize int64) (WriteExtent, error)
ParseExtent Parses write extent information from 32 bytes of raw memory. The memory is one write in metadata section of the object.
Click to show internal directories.
Click to hide internal directories.