cmd_list, cmd_list_journal: pass -o very_degraded

This commit is contained in:
Kent Overstreet 2024-03-30 22:08:43 -04:00
parent 8e02744a90
commit 6e50a9b4fc
2 changed files with 2 additions and 0 deletions

View File

@ -221,6 +221,7 @@ int cmd_list_journal(int argc, char *argv[])
opt_set(opts, norecovery, true);
opt_set(opts, read_only, true);
opt_set(opts, degraded, true);
opt_set(opts, very_degraded, true);
opt_set(opts, errors, BCH_ON_ERROR_continue);
opt_set(opts, fix_errors, FSCK_FIX_yes);
opt_set(opts, retain_recovery_info ,true);

View File

@ -135,6 +135,7 @@ fn cmd_list_inner(opt: Cli) -> anyhow::Result<()> {
opt_set!(fs_opts, read_only, 1);
opt_set!(fs_opts, norecovery, 1);
opt_set!(fs_opts, degraded, 1);
opt_set!(fs_opts, very_degraded, 1);
opt_set!(fs_opts, errors, bcachefs::bch_error_actions::BCH_ON_ERROR_continue as u8);
if opt.fsck {