summaryrefslogtreecommitdiff
path: root/cmd_fsck.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2017-12-21 18:00:30 -0500
committerKent Overstreet <kent.overstreet@gmail.com>2017-12-21 18:06:45 -0500
commit1cf4d51dc4661f336f5318c176a3561ddf5bf04f (patch)
tree8b390ccd48361ba1408be6799d46e62c6382cc39 /cmd_fsck.c
parent8acc54456e11ee0ec80ed0c6abb6d68abae60592 (diff)
Update bcachefs sources to 14ce2a2031 bcachefs: fixes for building in userspace
Diffstat (limited to 'cmd_fsck.c')
-rw-r--r--cmd_fsck.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/cmd_fsck.c b/cmd_fsck.c
index 9b01524a..556a4e1b 100644
--- a/cmd_fsck.c
+++ b/cmd_fsck.c
@@ -28,18 +28,19 @@ int cmd_fsck(int argc, char *argv[])
int opt;
opt_set(opts, degraded, true);
+ opt_set(opts, fix_errors, FSCK_OPT_ASK);
while ((opt = getopt(argc, argv, "pynfvh")) != -1)
switch (opt) {
case 'p':
- opt_set(opts, fix_errors, FSCK_ERR_YES);
+ opt_set(opts, fix_errors, FSCK_OPT_YES);
break;
case 'y':
- opt_set(opts, fix_errors, FSCK_ERR_YES);
+ opt_set(opts, fix_errors, FSCK_OPT_YES);
break;
case 'n':
opt_set(opts, nochanges, true);
- opt_set(opts, fix_errors, FSCK_ERR_NO);
+ opt_set(opts, fix_errors, FSCK_OPT_NO);
break;
case 'f':
/* force check, even if filesystem marked clean: */