diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-07-11 23:47:29 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:10:07 -0400 |
commit | a0f8faea5f47d6e18253225e8f2f88cdc49d27d8 (patch) | |
tree | cf2b0b930c403173fc70e39313fd4d1348cf428c /fs/bcachefs/recovery.c | |
parent | 9f343e24f541bef3d5f081925eae5734c2c39c28 (diff) | |
download | lwn-a0f8faea5f47d6e18253225e8f2f88cdc49d27d8.tar.gz lwn-a0f8faea5f47d6e18253225e8f2f88cdc49d27d8.zip |
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>
Diffstat (limited to 'fs/bcachefs/recovery.c')
-rw-r--r-- | fs/bcachefs/recovery.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/recovery.c b/fs/bcachefs/recovery.c index c46297bd1cf9..63b385d8886a 100644 --- a/fs/bcachefs/recovery.c +++ b/fs/bcachefs/recovery.c @@ -1175,7 +1175,7 @@ static void check_version_upgrade(struct bch_fs *c) prt_str(&buf, "fsck required"); c->recovery_passes_explicit |= recovery_passes; - c->opts.fix_errors = FSCK_OPT_YES; + c->opts.fix_errors = FSCK_FIX_yes; } bch_info(c, "%s", buf.buf); |