mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Recognize the "-F" option which requests whether the filesystem needs to
be cleaned immediately in foreground, or if its cleaning can be deferred to background. Submitted by: Maxime Henrion <mux@qualys.com>
This commit is contained in:
parent
e0c7ae7028
commit
c8fb766dde
1 changed files with 5 additions and 1 deletions
|
|
@ -75,7 +75,7 @@ main(argc, argv)
|
|||
int ret = 0, erg;
|
||||
int ch;
|
||||
|
||||
while ((ch = getopt(argc, argv, "pynf")) != -1) {
|
||||
while ((ch = getopt(argc, argv, "fFnpy")) != -1) {
|
||||
switch (ch) {
|
||||
case 'f':
|
||||
/*
|
||||
|
|
@ -83,6 +83,10 @@ main(argc, argv)
|
|||
* have a clean flag
|
||||
*/
|
||||
break;
|
||||
case 'F':
|
||||
/* We can never run in background */
|
||||
exit(8);
|
||||
break;
|
||||
case 'n':
|
||||
alwaysno = 1;
|
||||
alwaysyes = preen = 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue