From 8ccf4dff09e49b34c6ed2e161720634e8dafb99f Mon Sep 17 00:00:00 2001 From: Kent Overstreet Date: Sat, 19 Feb 2022 05:15:53 -0500 Subject: bcachefs: opts.read_journal_only Add an option that tells recovery to only read the journal, to be used by the list_journal command. Signed-off-by: Kent Overstreet --- fs/bcachefs/opts.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'fs/bcachefs/opts.h') diff --git a/fs/bcachefs/opts.h b/fs/bcachefs/opts.h index 57c829b6eee1..b03cac016f0b 100644 --- a/fs/bcachefs/opts.h +++ b/fs/bcachefs/opts.h @@ -329,6 +329,11 @@ enum opt_type { OPT_BOOL(), \ NO_SB_OPT, false, \ NULL, "Read all journal entries, not just dirty ones")\ + x(read_journal_only, u8, \ + 0, \ + OPT_BOOL(), \ + NO_SB_OPT, false, \ + NULL, "Only read the journal, skip the rest of recovery")\ x(journal_transaction_names, u8, \ OPT_FS|OPT_FORMAT|OPT_MOUNT|OPT_RUNTIME, \ OPT_BOOL(), \ -- cgit v1.2.3-58-ga151