mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-01-23 00:07:07 +03:00
Add a way to pass arbitrary mount options to fsck
This commit is contained in:
parent
92fc14824f
commit
7f35a52029
@ -30,7 +30,7 @@ int cmd_fsck(int argc, char *argv[])
|
||||
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':
|
||||
@ -46,6 +46,11 @@ int cmd_fsck(int argc, char *argv[])
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user