summaryrefslogtreecommitdiff
path: root/scripts/test_doc_build.py
diff options
context:
space:
mode:
authorFilipe Manana <fdmanana@suse.com>2025-09-05 12:58:19 +0100
committerDavid Sterba <dsterba@suse.com>2025-09-23 08:49:21 +0200
commit2753e49176240f21e4bb10e03514f99e732704bb (patch)
tree0d719e4d60f4b483880ab77baedc23d1e6a1be85 /scripts/test_doc_build.py
parent5a0565cad3ef7cbf4cf43d1dd1e849b156205292 (diff)
btrfs: dump detailed info and specific messages on log replay failures
Currently debugging log replay failures can be harder than needed, since all we do now is abort a transaction, which gives us a line number, a stack trace and an error code. But that is most of the times not enough to give some clue about what went wrong. So add a new helper to abort log replay and provide contextual information: 1) Dump the current leaf of the log tree being processed and print the slot we are currently at and the key at that slot; 2) Dump the current subvolume tree leaf if we have any; 3) Print the current stage of log replay; 4) Print the id of the subvolume root associated with the log tree we are currently processing (as we can have multiple); 5) Print some error message to mention what we were trying to do when we got an error. Replace all transaction abort calls (btrfs_abort_transaction()) with the new helper btrfs_abort_log_replay(), which besides dumping all that extra information, it also aborts the current transaction. Signed-off-by: Filipe Manana <fdmanana@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'scripts/test_doc_build.py')
0 files changed, 0 insertions, 0 deletions