From afb99743093332ae8434e7634d327054e7801b77 Mon Sep 17 00:00:00 2001 From: bunnie Date: Tue, 29 Mar 2022 04:37:35 +0800 Subject: [PATCH] issue a warning if dup journal entries are found (pdddbg) --- tools/pddbdbg.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/pddbdbg.py b/tools/pddbdbg.py index 6780fb910..8240cd0b2 100755 --- a/tools/pddbdbg.py +++ b/tools/pddbdbg.py @@ -753,6 +753,8 @@ class Fscb: if pp.valid() and (cur_pp.journal() < pp.journal()): logging.debug("FSCB replace {} /with/ {}".format(cur_pp.as_str(), pp.as_str())) self.free_space[pp.page_number() * 4096] = pp + elif cur_pp.journal() == pp.journal(): + logging.warning("Duplicate journal number found:\n {} (in table)\n {} (incoming)".format(cur_pp.as_str(), pp.as_str())) # this is the "AAD" used to encrypt the FastSpace def aad(version=0x01_01, dna=0):