MCPcopy
hub / github.com/cubefs/cubefs / testPrintInodeInfo

Function testPrintInodeInfo

metanode/multi_ver_test.go:603–612  ·  view source on GitHub ↗
(t *testing.T, ino *Inode)

Source from the content-addressed store, hash-verified

601}
602
603func testPrintInodeInfo(t *testing.T, ino *Inode) {
604 i := mp.inodeTree.Get(ino).(*Inode)
605 t.Logf("action[PrintAllVersionInfo] toplayer inode[%v] verSeq [%v] hist len [%v]", i, i.getVer(), i.getLayerLen())
606 if i.getLayerLen() == 0 {
607 return
608 }
609 for id, info := range i.multiSnap.multiVersions {
610 t.Logf("action[PrintAllVersionInfo] layer [%v] verSeq [%v] inode[%v]", id, info.getVer(), info)
611 }
612}
613
614func testDelDirSnapshotVersion(t *testing.T, verSeq uint64, dirIno *Inode, dirDentry *Dentry) {
615 if verSeq != 0 {

Callers 1

Calls 3

getVerMethod · 0.80
getLayerLenMethod · 0.80
GetMethod · 0.65

Tested by

no test coverage detected