Fix 'bcachefs fsck -y'

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
Kent Overstreet 2023-07-20 18:11:51 -04:00
parent 44fc32e7ef
commit e8e60b982d

View File

@ -45,10 +45,8 @@ int cmd_fsck(int argc, char *argv[])
switch (opt) {
case 'a': /* outdated alias for -p */
case 'p':
opt_set(opts, fix_errors, FSCK_FIX_yes);
break;
case 'y':
opt_set(opts, fix_errors, FSCK_FIX_no);
opt_set(opts, fix_errors, FSCK_FIX_yes);
break;
case 'n':
opt_set(opts, nochanges, true);