diff options
author | avg <avg@FreeBSD.org> | 2009-06-10 19:02:54 +0000 |
---|---|---|
committer | avg <avg@FreeBSD.org> | 2009-06-10 19:02:54 +0000 |
commit | 20201c3a83c2f5f4bb3aa40ed833dcf29b9f6fe5 (patch) | |
tree | c1810ed64a0c754c7f286ada646fbccbf242375a /sbin | |
parent | 6e30b78167fc4eae3fac9e9348416692c401f276 (diff) | |
download | FreeBSD-src-20201c3a83c2f5f4bb3aa40ed833dcf29b9f6fe5.zip FreeBSD-src-20201c3a83c2f5f4bb3aa40ed833dcf29b9f6fe5.tar.gz |
fsck_msdosfs: accept no-op -C option for compatibilty with fsck
Submitted by: marck
Reviewed by: current@
Approved by: jhb (mentor)
MFC after: 1 week
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/fsck_msdosfs/fsck_msdosfs.8 | 10 | ||||
-rw-r--r-- | sbin/fsck_msdosfs/main.c | 4 |
2 files changed, 10 insertions, 4 deletions
diff --git a/sbin/fsck_msdosfs/fsck_msdosfs.8 b/sbin/fsck_msdosfs/fsck_msdosfs.8 index 8631210..3bc22b1 100644 --- a/sbin/fsck_msdosfs/fsck_msdosfs.8 +++ b/sbin/fsck_msdosfs/fsck_msdosfs.8 @@ -32,7 +32,7 @@ .\" .\" $FreeBSD$ .\" -.Dd August 13, 1995 +.Dd June 4, 2009 .Dt FSCK_MSDOSFS 8 .Os .Sh NAME @@ -41,10 +41,10 @@ .Sh SYNOPSIS .Nm .Fl p -.Op Fl f +.Op Fl Cf .Ar filesystem ... .Nm -.Op Fl ny +.Op Fl Cny .Ar filesystem ... .Sh DESCRIPTION The @@ -80,6 +80,10 @@ making any changes. .Pp The options are as follows: .Bl -tag -width indent +.It Fl C +Compatibility with the corresponding +.Xr fsck 8 +option (skip check if clean), defined to no-op. .It Fl F Compatibility with the wrapper .Xr fsck 8 diff --git a/sbin/fsck_msdosfs/main.c b/sbin/fsck_msdosfs/main.c index eacc792..c09abd5 100644 --- a/sbin/fsck_msdosfs/main.c +++ b/sbin/fsck_msdosfs/main.c @@ -74,8 +74,10 @@ main(int argc, char **argv) int ch; skipclean = 1; - while ((ch = getopt(argc, argv, "fFnpy")) != -1) { + while ((ch = getopt(argc, argv, "CfFnpy")) != -1) { switch (ch) { + case 'C': /* for fsck_ffs compatibility */ + break; case 'f': skipclean = 0; break; |