svn commit: r193943 - head/sbin/fsck_msdosfs

Andriy Gapon avg at FreeBSD.org
Wed Jun 10 19:02:55 UTC 2009


Author: avg
Date: Wed Jun 10 19:02:54 2009
New Revision: 193943
URL: http://svn.freebsd.org/changeset/base/193943

Log:
  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

Modified:
  head/sbin/fsck_msdosfs/fsck_msdosfs.8
  head/sbin/fsck_msdosfs/main.c

Modified: head/sbin/fsck_msdosfs/fsck_msdosfs.8
==============================================================================
--- head/sbin/fsck_msdosfs/fsck_msdosfs.8	Wed Jun 10 19:02:09 2009	(r193942)
+++ head/sbin/fsck_msdosfs/fsck_msdosfs.8	Wed Jun 10 19:02:54 2009	(r193943)
@@ -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

Modified: head/sbin/fsck_msdosfs/main.c
==============================================================================
--- head/sbin/fsck_msdosfs/main.c	Wed Jun 10 19:02:09 2009	(r193942)
+++ head/sbin/fsck_msdosfs/main.c	Wed Jun 10 19:02:54 2009	(r193943)
@@ -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;


More information about the svn-src-head mailing list