2022-06-17 11:31:05 +00:00
|
|
|
package storiface
|
|
|
|
|
|
|
|
import "github.com/filecoin-project/go-state-types/abi"
|
|
|
|
|
|
|
|
type PathType string
|
|
|
|
|
|
|
|
const (
|
|
|
|
PathStorage PathType = "storage"
|
|
|
|
PathSealing PathType = "sealing"
|
|
|
|
)
|
|
|
|
|
|
|
|
type AcquireMode string
|
|
|
|
|
|
|
|
const (
|
|
|
|
AcquireMove AcquireMode = "move"
|
|
|
|
AcquireCopy AcquireMode = "copy"
|
|
|
|
)
|
|
|
|
|
2023-08-14 22:46:41 +00:00
|
|
|
//type Refs struct {
|
|
|
|
// RefCount [FileTypes]uint
|
|
|
|
//}
|
2022-06-17 11:31:05 +00:00
|
|
|
|
|
|
|
type SectorLock struct {
|
|
|
|
Sector abi.SectorID
|
|
|
|
Write [FileTypes]uint
|
|
|
|
Read [FileTypes]uint
|
|
|
|
}
|
|
|
|
|
|
|
|
type SectorLocks struct {
|
|
|
|
Locks []SectorLock
|
|
|
|
}
|