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
@@ -2774,7 +2774,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,
@@ -2782,9 +2783,9 @@ class Gstate:
cksum)
def repr(self):
return 'gbmap %s k%s+%s' % (
return 'gbmap %s %d+%d' % (
self.btree.addr(),
self.known, self.cursor)
self.ctrled, self.unctrled)
# keep track of known gstate
_known = [g for g in Gstate.__subclasses__() if g.tag is not None]