MCPcopy
hub / github.com/cubefs/cubefs / getLayerLen

Method getLayerLen

metanode/inode.go:237–242  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

235}
236
237func (i *Inode) getLayerLen() int {
238 if i.multiSnap == nil {
239 return 0
240 }
241 return len(i.multiSnap.multiVersions)
242}
243
244func (i *Inode) getLayerVer(layer int) uint64 {
245 if i.multiSnap == nil {

Callers 15

TestInodeVerMarshalFunction · 0.95
getLayerVerMethod · 0.95
isEmptyVerListMethod · 0.95
isTailIndexInListMethod · 0.95
getTailVerInListMethod · 0.95
StringMethod · 0.95
MarshalValueV2Method · 0.95
PrintAllVersionInfoMethod · 0.95
RestoreExts2NextLayerMethod · 0.95
unlinkTopLayerMethod · 0.95
getInoByVerMethod · 0.95

Calls

no outgoing calls

Tested by 5

TestInodeVerMarshalFunction · 0.76
TestAppendListFunction · 0.64
testPrintAllInodeInfoFunction · 0.64
testPrintInodeInfoFunction · 0.64
TestTruncateAndDelFunction · 0.64