We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9637ffe + df2d65c commit af71de4Copy full SHA for af71de4
src/tools/cephfs/first-damage.py
@@ -85,7 +85,8 @@ def traverse(MEMO, ioctx):
85
nkey = None
86
for (dnk, val) in it:
87
log.debug(f'\t{dnk}: val size {len(val)}')
88
- (first,) = struct.unpack('<I', val[:4])
+ (first,) = struct.unpack('<Q', val[:8])
89
+ log.debug(f'\t{dnk}: first {first}')
90
if first > NEXT_SNAP:
91
log.warning(f"found {o.key}:{dnk} first (0x{first:x}) > NEXT_SNAP (0x{NEXT_SNAP:x})")
92
if REPAIR_NOSNAP and dnk.endswith(b"_head") and first == CEPH_NOSNAP:
0 commit comments