From ad6e376450b66a89c482a688a8a124efd65f3d80 Mon Sep 17 00:00:00 2001 From: obrien Date: Thu, 19 Jul 2001 16:45:45 +0000 Subject: 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 --- sbin/fsck_msdosfs/main.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sbin/fsck_msdosfs/main.c b/sbin/fsck_msdosfs/main.c index dec3e39..069cc59 100644 --- a/sbin/fsck_msdosfs/main.c +++ b/sbin/fsck_msdosfs/main.c @@ -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; -- cgit v1.1