Documentation ¶
Index ¶
Constants ¶
View Source
const FSOverheadDen = 10
Variables ¶
View Source
var ErrSectorNotFound = errors.New("sector not found")
View Source
var FSOverheadSeal = map[SectorFileType]int{ FTUnsealed: FSOverheadDen, FTSealed: FSOverheadDen, FTCache: 141, }
View Source
var FsOverheadFinalized = map[SectorFileType]int{ FTUnsealed: FSOverheadDen, FTSealed: FSOverheadDen, FTCache: 2, }
View Source
var PathTypes = []SectorFileType{FTUnsealed, FTSealed, FTCache}
Functions ¶
func SectorName ¶
func SetPathByType ¶
func SetPathByType(sps *SectorPaths, fileType SectorFileType, p string)
Types ¶
type AcquireMode ¶
type AcquireMode string
type PaddedByteIndex ¶
type PaddedByteIndex uint64
type SectorFileType ¶
type SectorFileType int
const ( FTUnsealed SectorFileType = 1 << iota FTSealed FTCache FileTypes = iota )
const (
FTNone SectorFileType = 0
)
func (SectorFileType) All ¶
func (t SectorFileType) All() [FileTypes]bool
func (SectorFileType) Has ¶
func (t SectorFileType) Has(singleType SectorFileType) bool
func (SectorFileType) SealSpaceUse ¶
func (t SectorFileType) SealSpaceUse(ssize abi.SectorSize) (uint64, error)
func (SectorFileType) String ¶
func (t SectorFileType) String() string
type SectorPaths ¶
type UnpaddedByteIndex ¶
type UnpaddedByteIndex uint64
func (UnpaddedByteIndex) Padded ¶
func (i UnpaddedByteIndex) Padded() PaddedByteIndex
Click to show internal directories.
Click to hide internal directories.