Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
237
func
(i *Inode) getLayerLen() int {
238
if
i.multiSnap == nil {
239
return
0
240
}
241
return
len(i.multiSnap.multiVersions)
242
}
243
244
func
(i *Inode) getLayerVer(layer int) uint64 {
245
if
i.multiSnap == nil {
Callers
15
TestInodeVerMarshal
Function · 0.95
getLayerVer
Method · 0.95
isEmptyVerList
Method · 0.95
isTailIndexInList
Method · 0.95
getTailVerInList
Method · 0.95
GetAllExtsOfflineInode
Method · 0.95
String
Method · 0.95
MarshalValueV2
Method · 0.95
PrintAllVersionInfo
Method · 0.95
RestoreExts2NextLayer
Method · 0.95
unlinkTopLayer
Method · 0.95
getInoByVer
Method · 0.95
Calls
no outgoing calls
Tested by
5
TestInodeVerMarshal
Function · 0.76
TestAppendList
Function · 0.64
testPrintAllInodeInfo
Function · 0.64
testPrintInodeInfo
Function · 0.64
TestTruncateAndDel
Function · 0.64