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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user