bmap: Split known into ctrled+unctrled

This commit is contained in:
Christopher Haster
2025-07-26 10:37:59 -05:00
parent 732d6079e3
commit e7c3755e21
5 changed files with 42 additions and 20 deletions
+4 -3
View File
@@ -2731,7 +2731,8 @@ class Gstate:
super().__init__(mtree, config, tag, gdeltas)
d = 0
self.cursor, d_ = fromleb128(self.data, d); d += d_
self.known, d_ = fromleb128(self.data, d); d += d_
self.ctrled, d_ = fromleb128(self.data, d); d += d_
self.unctrled, d_ = fromleb128(self.data, d); d += d_
block, trunk, cksum, d_ = frombranch(self.data, d); d += d_
self.btree = Btree.fetchck(
mtree.bd, block, trunk,
@@ -2739,9 +2740,9 @@ class Gstate:
cksum)
def repr(self):
return 'gbmap %s 0x%x %d' % (
return 'gbmap %s %d+%d' % (
self.btree.addr(),
self.cursor, self.known)
self.ctrled, self.unctrled)
# keep track of known gstate
_known = [g for g in Gstate.__subclasses__() if g.tag is not None]