diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2025-03-19 13:33:19 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2025-03-19 15:09:44 -0400 |
commit | e6aecdd3b8a00d9718fc1ef30ab6a5dbdb5a53dc (patch) | |
tree | 2fbabf799920b55ebaaf5326da891202fd8b2544 | |
parent | 62ea232b09a6ed6464ccd23d3b60f5acf284a77b (diff) |
cmd_fsck: just exit if passed -a
-a is used when called from system to mean "automatic invocation, run
check only if you think you need it".
Since we have self healing and online fsck, we never need run fsck
automatically at boot time.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
-rw-r--r-- | c_src/cmd_fsck.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/c_src/cmd_fsck.c b/c_src/cmd_fsck.c index 2ea51ff2..3a33ca40 100644 --- a/c_src/cmd_fsck.c +++ b/c_src/cmd_fsck.c @@ -227,7 +227,10 @@ int cmd_fsck(int argc, char *argv[]) "apynfo:rRkKvh", longopts, NULL)) != -1) switch (opt) { - case 'a': /* outdated alias for -p */ + case 'a': + /* "automatic" run, called by the system, for us to do checks as needed. + * we don't need checks here: */ + exit(EXIT_SUCCESS); case 'p': case 'y': append_opt(&opts_str, "fix_errors=yes"); |