diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2022-02-19 05:15:53 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:09:24 -0400 |
commit | 8ccf4dff09e49b34c6ed2e161720634e8dafb99f (patch) | |
tree | 71419d5619829aff695cf4ba78285d75e032f019 /fs/bcachefs/opts.h | |
parent | 06a98c966f9ae5d978b53986eca2a9cd99d2a6f3 (diff) |
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 <kent.overstreet@gmail.com>
Diffstat (limited to 'fs/bcachefs/opts.h')
-rw-r--r-- | fs/bcachefs/opts.h | 5 |
1 files changed, 5 insertions, 0 deletions
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(), \ |