mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-02-23 00:00:02 +03:00
fsck: support -a as -p for compatibility with other fsck
This commit is contained in:
parent
71f6f6ece5
commit
b5e3302af7
@ -28,8 +28,9 @@ int cmd_fsck(int argc, char *argv[])
|
||||
opt_set(opts, degraded, true);
|
||||
opt_set(opts, fix_errors, FSCK_OPT_ASK);
|
||||
|
||||
while ((opt = getopt(argc, argv, "pynfvh")) != -1)
|
||||
while ((opt = getopt(argc, argv, "apynfvh")) != -1)
|
||||
switch (opt) {
|
||||
case 'a': /* outdated alias for -p */
|
||||
case 'p':
|
||||
opt_set(opts, fix_errors, FSCK_OPT_YES);
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user