bcachefs: fix_errors option is now a proper enum
authorKent Overstreet <kent.overstreet@linux.dev>
Wed, 12 Jul 2023 03:47:29 +0000 (23:47 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:10:07 +0000 (17:10 -0400)
commita0f8faea5f47d6e18253225e8f2f88cdc49d27d8
treecf2b0b930c403173fc70e39313fd4d1348cf428c
parent9f343e24f541bef3d5f081925eae5734c2c39c28
bcachefs: fix_errors option is now a proper enum

Before, it was parsed as a bool but internally it was really an enum:
this lets us pass in all the possible values.

But we special case the option parsing: no supplied value is parsed as
FSCK_FIX_yes, to match the previous behaviour.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/btree_gc.c
fs/bcachefs/error.c
fs/bcachefs/error.h
fs/bcachefs/opts.c
fs/bcachefs/opts.h
fs/bcachefs/recovery.c