MCPcopy
hub / github.com/perkeep/perkeep / storage

Struct storage

pkg/blobserver/diskpacked/diskpacked.go:81–95  ·  view source on GitHub ↗

512MB

Source from the content-addressed store, hash-verified

79const defaultMaxFileSize = 512 << 20 // 512MB
80
81type storage struct {
82 root string
83 index sorted.KeyValue
84 maxFileSize int64
85
86 writeLock io.Closer // Provided by lock.Lock, and guards other processes from accessing the file open for writes.
87
88 *local.Generationer
89
90 mu sync.Mutex // Guards all I/O state.
91 closed bool
92 writer *os.File
93 fds []*os.File
94 size int64
95}
96
97func (s *storage) String() string {
98 return fmt.Sprintf("\"diskpacked\" blob packs at %s", s.root)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected