int opt, ret = 0;
opt_set(opts, degraded, true);
+ opt_set(opts, fsck, true);
opt_set(opts, fix_errors, FSCK_OPT_ASK);
- while ((opt = getopt(argc, argv, "apynfvh")) != -1)
+ while ((opt = getopt(argc, argv, "apynfo:vh")) != -1)
switch (opt) {
case 'a': /* outdated alias for -p */
case 'p':
case 'f':
/* force check, even if filesystem marked clean: */
break;
+ case 'o':
+ ret = bch2_parse_mount_opts(&opts, optarg);
+ if (ret)
+ return ret;
+ break;
case 'v':
opt_set(opts, verbose, true);
break;