summaryrefslogtreecommitdiff
path: root/cmd_fsck.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2023-07-10 20:31:34 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2023-07-15 17:36:15 -0400
commitc8bec83e307f28751c433ba1d3f648429fb5a34c (patch)
tree6e70e0cf8f25117f706214d86a0689ee8495dca0 /cmd_fsck.c
parent1c156d5c4667c1c2e2949b229dfef75696196d35 (diff)
Update bcachefs sources to e14d7c7195 bcachefs: Compression levels
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'cmd_fsck.c')
-rw-r--r--cmd_fsck.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/cmd_fsck.c b/cmd_fsck.c
index 54ace957..00134971 100644
--- a/cmd_fsck.c
+++ b/cmd_fsck.c
@@ -37,7 +37,7 @@ int cmd_fsck(int argc, char *argv[])
opt_set(opts, degraded, true);
opt_set(opts, fsck, true);
- opt_set(opts, fix_errors, FSCK_OPT_ASK);
+ opt_set(opts, fix_errors, FSCK_FIX_ask);
while ((opt = getopt_long(argc, argv,
"apynfo:rvh",
@@ -45,14 +45,14 @@ int cmd_fsck(int argc, char *argv[])
switch (opt) {
case 'a': /* outdated alias for -p */
case 'p':
- opt_set(opts, fix_errors, FSCK_OPT_YES);
+ opt_set(opts, fix_errors, FSCK_FIX_yes);
break;
case 'y':
- opt_set(opts, fix_errors, FSCK_OPT_YES);
+ opt_set(opts, fix_errors, FSCK_FIX_no);
break;
case 'n':
opt_set(opts, nochanges, true);
- opt_set(opts, fix_errors, FSCK_OPT_NO);
+ opt_set(opts, fix_errors, FSCK_FIX_no);
break;
case 'f':
/* force check, even if filesystem marked clean: */