diff options
author | obrien <obrien@FreeBSD.org> | 2001-07-19 16:45:45 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2001-07-19 16:45:45 +0000 |
commit | ad6e376450b66a89c482a688a8a124efd65f3d80 (patch) | |
tree | 0fdcdf5287001c06876d2e304fc5a55a420fefc9 | |
parent | 4e76d851fa12181a2764f6fe8c381d5d79e67165 (diff) | |
download | FreeBSD-src-ad6e376450b66a89c482a688a8a124efd65f3d80.zip FreeBSD-src-ad6e376450b66a89c482a688a8a124efd65f3d80.tar.gz |
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>
-rw-r--r-- | sbin/fsck_msdosfs/main.c | 6 |
1 files changed, 5 insertions, 1 deletions
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; |