Fixed bug in dbglfs.py that prevented struct rendering

When we introduced erased-state agnostic rbyd cksums, we added a cksums
to the dbg scripts since their cksums were actually useful now.

Unfortunately this missed the explicit/hacky Rbyd constructions in
dbglfs.py used to render file structs. Fixed by falling by using
cksum=0 in these cases.
This commit is contained in:
Christopher Haster
2024-05-14 14:32:53 -05:00
parent e80c907ff8
commit 4672fb59ca
+3
View File
@@ -1273,6 +1273,7 @@ def dbg_fstruct(f, block_size, mdir, rid, tag, j, d, data, *,
mdir.rev,
mdir.eoff,
j,
0,
0)
w = len(data)
# direct block?
@@ -1283,6 +1284,7 @@ def dbg_fstruct(f, block_size, mdir, rid, tag, j, d, data, *,
mdir.rev,
mdir.eoff,
j,
0,
0)
size, block, off, cksize, cksum = frombptr(data)
w = size
@@ -1573,6 +1575,7 @@ def dbg_fstruct(f, block_size, mdir, rid, tag, j, d, data, *,
mdir.rev,
mdir.eoff,
j,
0,
0), w-1, [(tag, j, d, data)], -1)
# traverse and print entries