mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-02-23 00:00:02 +03:00
cmd_list, cmd_list_journal: pass -o very_degraded
This commit is contained in:
parent
8e02744a90
commit
6e50a9b4fc
@ -221,6 +221,7 @@ int cmd_list_journal(int argc, char *argv[])
|
|||||||
opt_set(opts, norecovery, true);
|
opt_set(opts, norecovery, true);
|
||||||
opt_set(opts, read_only, true);
|
opt_set(opts, read_only, true);
|
||||||
opt_set(opts, degraded, true);
|
opt_set(opts, degraded, true);
|
||||||
|
opt_set(opts, very_degraded, true);
|
||||||
opt_set(opts, errors, BCH_ON_ERROR_continue);
|
opt_set(opts, errors, BCH_ON_ERROR_continue);
|
||||||
opt_set(opts, fix_errors, FSCK_FIX_yes);
|
opt_set(opts, fix_errors, FSCK_FIX_yes);
|
||||||
opt_set(opts, retain_recovery_info ,true);
|
opt_set(opts, retain_recovery_info ,true);
|
||||||
|
@ -135,6 +135,7 @@ fn cmd_list_inner(opt: Cli) -> anyhow::Result<()> {
|
|||||||
opt_set!(fs_opts, read_only, 1);
|
opt_set!(fs_opts, read_only, 1);
|
||||||
opt_set!(fs_opts, norecovery, 1);
|
opt_set!(fs_opts, norecovery, 1);
|
||||||
opt_set!(fs_opts, degraded, 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);
|
opt_set!(fs_opts, errors, bcachefs::bch_error_actions::BCH_ON_ERROR_continue as u8);
|
||||||
|
|
||||||
if opt.fsck {
|
if opt.fsck {
|
||||||
|
Loading…
Reference in New Issue
Block a user