bmap: Added initial gbatc interactions, up until out-of-known or remount

This only works immediately after format, and only for one pass of the
disk, but it's a good way to test bmap lookups/allocation without
worrying about more complicated filesystem-wide interactions.
This commit is contained in:
Christopher Haster
2025-07-24 23:41:02 -05:00
parent 357526e775
commit 98f016b07e
3 changed files with 128 additions and 6 deletions

View File

@ -2739,9 +2739,9 @@ class Gstate:
cksum)
def repr(self):
return 'gbmap %s %s+%s' % (
return 'gbmap %s 0x%x %d' % (
self.btree.addr(),
self.known, self.cursor)
self.cursor, self.known)
# keep track of known gstate
_known = [g for g in Gstate.__subclasses__() if g.tag is not None]