Documentation ¶
Index ¶
- Constants
- Variables
- type Config
- type DebugChunkInfo
- type DebugImage
- type DebugReq
- type DebugResp
- type DebugSizeStats
- type DebugSlabInfo
- type GcReq
- type InitReq
- type MaterializeReq
- type MountReq
- type PrefetchReq
- type RepairReq
- type Server
- func (s *Server) AllocateBatch(ctx context.Context, blocks []uint16, digests []cdig.CDig) ([]erofs.SlabLoc, error)
- func (s *Server) SlabInfo(slabId uint16) (tag string, totalBlocks uint32)
- func (s *Server) Start() error
- func (s *Server) Stop(closeDevnode bool)
- func (s *Server) VerifyParams(blockShift common.BlkShift) error
- type Sph
- type SphPrefix
- type Stats
- type Status
- type UmountReq
- type VaporizeReq
Constants ¶
View Source
const ( // only public so they can be referenced by tests InitOpSize = 8 MaxOpSize = 128 // must be ≤ manifester.ChunkDiffMaxDigests MaxDiffOps = 8 MaxSources = 3 )
View Source
const ( /* * Fscache ensures that the maximum length of cookie key is 255. The volume key * is controlled by netfs, and generally no bigger than 255. */ CACHEFILES_MSG_MAX_SIZE = 1024 CACHEFILES_OP_OPEN = 0 CACHEFILES_OP_CLOSE = 1 CACHEFILES_OP_READ = 2 CACHEFILES_IOC_READ_COMPLETE = _IOC_WRITE<<_IOC_DIRSHIFT | 0x98<<_IOC_TYPESHIFT | 1<<_IOC_NRSHIFT | 4<<_IOC_SIZESHIFT )
Variables ¶
View Source
var ( // protocol is json over http over unix socket // socket is path.Join(CachePath, Socket) // accessible to root only! Socket = "styx.sock" InitPath = "/init" MountPath = "/mount" UmountPath = "/umount" MaterializePath = "/materialize" VaporizePath = "/vaporize" PrefetchPath = "/prefetch" GcPath = "/gc" DebugPath = "/debug" RepairPath = "/repair" )
Functions ¶
This section is empty.
Types ¶
type DebugChunkInfo ¶
type DebugImage ¶
type DebugImage struct { Image *pb.DbImage Manifest *pb.Manifest Stats DebugSizeStats }
type DebugResp ¶
type DebugResp struct { Params *pb.DbParams Stats Stats DbStats bbolt.Stats Images map[string]DebugImage `json:",omitempty"` Slabs []*DebugSlabInfo `json:",omitempty"` Chunks map[string]*DebugChunkInfo `json:",omitempty"` }
type DebugSizeStats ¶
type DebugSlabInfo ¶
type DebugSlabInfo struct { Index uint16 Stats DebugSizeStats ChunkSizeDist map[uint32]int }
type InitReq ¶
type InitReq struct { PubKeys []string Params pb.DaemonParams }
type MaterializeReq ¶
type PrefetchReq ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) AllocateBatch ¶
type Stats ¶
type Stats struct { ManifestCacheReqs int64 // total manifest cache requests ManifestCacheHits int64 // requests that got a hit ManifestReqs int64 // requests for new manifest ManifestErrs int64 // requests for new manifest that got an error SlabReads int64 // read requests to slab SlabReadErrs int64 // failed read requests to slab SingleReqs int64 // chunk request count SingleBytes int64 // chunk bytes received (uncompressed) SingleErrs int64 // chunk request error count BatchReqs int64 // no-base diff request count BatchBytes int64 // no-base diff bytes received (compressed) BatchErrs int64 // no-base diff request error count DiffReqs int64 // with-base diff request count DiffBytes int64 // with-base diff bytes received (compressed) DiffErrs int64 // with-base diff request error count RecompressReqs int64 // reqs with recompression ExtraReqs int64 // extra read-ahead reqs (beyond 1 per read) }
type VaporizeReq ¶
Click to show internal directories.
Click to hide internal directories.