scripts: dbglfs.py: Added --ckmeta/--ckdata

For more aggressive checking of filesystem state. These should match the
behavior of LFS_M_CKMETA/CKDATA in lfs.c.

Also tweaked dbgbmapd3.py (and eventually dbgmap.py) to match, though we
don't need new flags there since we're already checking every block in
the filesystem.
This commit is contained in:
Christopher Haster
2025-04-05 17:41:11 -05:00
parent cbd3fed8b8
commit 5682fd6163
3 changed files with 153 additions and 46 deletions
+5 -1
View File
@@ -1447,7 +1447,11 @@ class Mdir:
return self.rbyd.gcksumdelta
def addr(self):
return self.rbyd.addr()
if len(self.blocks) == 1:
return '0x%x' % self.block
else:
return '0x{%s}' % (
','.join('%x' % block for block in self.blocks))
def __repr__(self):
return '<%s %s>' % (self.__class__.__name__, self.repr())