mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-03-10 00:00:04 +03:00
cmd_list_journal: Tweak for new log entries
We use entry->level to denote which log entries indicate the start of a transaction - this updates cmd_list_journal to format them correctly. Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
This commit is contained in:
parent
e240b4ae86
commit
6692c6f9d3
@ -662,7 +662,7 @@ int cmd_list_journal(int argc, char *argv[])
|
|||||||
* log entries denote the start of a new transaction
|
* log entries denote the start of a new transaction
|
||||||
* commit:
|
* commit:
|
||||||
*/
|
*/
|
||||||
if (entry->type == BCH_JSET_ENTRY_log)
|
if (entry->type == BCH_JSET_ENTRY_log && !entry->level)
|
||||||
pr_newline(&buf);
|
pr_newline(&buf);
|
||||||
pr_indent_push(&buf, 4);
|
pr_indent_push(&buf, 4);
|
||||||
bch2_journal_entry_to_text(&buf, c, entry);
|
bch2_journal_entry_to_text(&buf, c, entry);
|
||||||
|
Loading…
Reference in New Issue
Block a user