MCPcopy Create free account
hub / github.com/akalin/gopar / volumePath

Method volumePath

par1/decoder.go:180–187  ·  view source on GitHub ↗
(volumeNumber uint64)

Source from the content-addressed store, hash-verified

178}
179
180func (d *Decoder) volumePath(volumeNumber uint64) string {
181 if volumeNumber == 0 {
182 panic("unexpected zero volume number")
183 }
184 ext := path.Ext(d.indexFile)
185 base := d.indexFile[:len(d.indexFile)-len(ext)]
186 return base + fmt.Sprintf(".p%02d", volumeNumber)
187}
188
189// LoadParityData searches for parity volumes and loads them into
190// memory.

Callers 1

LoadParityDataMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected