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
@ -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…
x
Reference in New Issue
Block a user