aboutsummaryrefslogtreecommitdiff
path: root/sbin/fsck_msdosfs
diff options
context:
space:
mode:
authorDavid E. O'Brien <obrien@FreeBSD.org>2001-07-19 16:45:45 +0000
committerDavid E. O'Brien <obrien@FreeBSD.org>2001-07-19 16:45:45 +0000
commitc8fb766ddec91f9579ba9db837acf6c5383ebb9d (patch)
tree0fdcdf5287001c06876d2e304fc5a55a420fefc9 /sbin/fsck_msdosfs
parente0c7ae7028b7aab04d2437679a99d5ad43c0c83e (diff)
downloadsrc-c8fb766ddec91f9579ba9db837acf6c5383ebb9d.tar.gz
src-c8fb766ddec91f9579ba9db837acf6c5383ebb9d.zip
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>
Notes
Notes: svn path=/head/; revision=79976
Diffstat (limited to 'sbin/fsck_msdosfs')
-rw-r--r--sbin/fsck_msdosfs/main.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sbin/fsck_msdosfs/main.c b/sbin/fsck_msdosfs/main.c
index dec3e3958d7e..069cc592e99a 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;