#include "cmds.h"
+#include "error.h"
#include "libbcachefs.h"
#include "super.h"
#include "tools-util.h"
while ((opt = getopt(argc, argv, "pynfvh")) != -1)
switch (opt) {
case 'p':
- fsck_err_opt = FSCK_ERR_YES;
+ opts.fix_errors = FSCK_ERR_YES;
break;
case 'y':
- fsck_err_opt = FSCK_ERR_YES;
+ opts.fix_errors = FSCK_ERR_YES;
break;
case 'n':
opts.nochanges = true;
- fsck_err_opt = FSCK_ERR_NO;
+ opts.fix_errors = FSCK_ERR_NO;
break;
case 'f':
/* force check, even if filesystem marked clean: */