Documentation ¶
Index ¶
- Constants
- Variables
- func ParseSectorID(baseName string) (abi.SectorID, error)
- func PathByType(sps SectorPaths, fileType SectorFileType) string
- func SectorName(sid abi.SectorID) string
- func SetPathByType(sps *SectorPaths, fileType SectorFileType, p string)
- type AcquireMode
- type PaddedByteIndex
- type PathType
- type SectorFileType
- type SectorPaths
- type UnpaddedByteIndex
Constants ¶
View Source
const FSOverheadDen = 10
Variables ¶
View Source
var ErrSectorNotFound = errors.New("sector not found")
ErrSectorNotFound sector not found error
View Source
var FSOverheadSeal = map[SectorFileType]int{ FTUnsealed: FSOverheadDen, FTSealed: FSOverheadDen, FTUpdate: FSOverheadDen, FTUpdateCache: FSOverheadDen * 2, FTCache: 141, }
View Source
var FsOverheadFinalized = map[SectorFileType]int{ FTUnsealed: FSOverheadDen, FTSealed: FSOverheadDen, FTUpdate: FSOverheadDen * 2, FTUpdateCache: FSOverheadDen, FTCache: 2, }
View Source
var PathTypes = []SectorFileType{FTUnsealed, FTSealed, FTCache, FTUpdate, FTUpdateCache}
Functions ¶
func PathByType ¶ added in v1.2.0
func PathByType(sps SectorPaths, fileType SectorFileType) string
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 FTUpdate FTUpdateCache 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) StoreSpaceUse ¶ added in v1.2.0
func (t SectorFileType) StoreSpaceUse(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.