list_journal: tell recovery to only read the journal

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
This commit is contained in:
Kent Overstreet 2022-02-19 05:18:08 -05:00
parent 6a935c784a
commit f850624092

View File

@ -574,6 +574,7 @@ int cmd_list_journal(int argc, char *argv[])
opt_set(opts, errors, BCH_ON_ERROR_continue); opt_set(opts, errors, BCH_ON_ERROR_continue);
opt_set(opts, fix_errors, FSCK_OPT_YES); opt_set(opts, fix_errors, FSCK_OPT_YES);
opt_set(opts, keep_journal, true); opt_set(opts, keep_journal, true);
opt_set(opts, read_journal_only,true);
while ((opt = getopt(argc, argv, "ah")) != -1) while ((opt = getopt(argc, argv, "ah")) != -1)
switch (opt) { switch (opt) {