2020-09-06 16:47:16 +00:00
|
|
|
package storiface
|
2020-09-06 16:54:00 +00:00
|
|
|
|
2021-12-03 11:33:23 +00:00
|
|
|
import "github.com/filecoin-project/go-state-types/abi"
|
|
|
|
|
2020-09-06 16:54:00 +00:00
|
|
|
type PathType string
|
|
|
|
|
|
|
|
const (
|
|
|
|
PathStorage PathType = "storage"
|
|
|
|
PathSealing PathType = "sealing"
|
|
|
|
)
|
|
|
|
|
|
|
|
type AcquireMode string
|
|
|
|
|
|
|
|
const (
|
|
|
|
AcquireMove AcquireMode = "move"
|
|
|
|
AcquireCopy AcquireMode = "copy"
|
|
|
|
)
|
2021-12-03 11:33:23 +00:00
|
|
|
|
|
|
|
type Refs struct {
|
|
|
|
RefCount [FileTypes]uint
|
|
|
|
}
|
|
|
|
|
|
|
|
type SectorLock struct {
|
|
|
|
Sector abi.SectorID
|
|
|
|
Write [FileTypes]uint
|
|
|
|
Read [FileTypes]uint
|
|
|
|
}
|
|
|
|
|
|
|
|
type SectorLocks struct {
|
|
|
|
Locks []SectorLock
|
|
|
|
}
|