[Ocfs2-tools-commits] zab commits r495 - trunk/fsck.ocfs2
svn-commits at oss.oracle.com
svn-commits at oss.oracle.com
Thu Dec 16 12:43:50 CST 2004
Author: zab
Date: 2004-12-16 12:43:49 -0600 (Thu, 16 Dec 2004)
New Revision: 495
Modified:
trunk/fsck.ocfs2/fsck.c
Log:
o update fsck's usage output
Modified: trunk/fsck.ocfs2/fsck.c
===================================================================
--- trunk/fsck.ocfs2/fsck.c 2004-12-16 18:07:21 UTC (rev 494)
+++ trunk/fsck.ocfs2/fsck.c 2004-12-16 18:43:49 UTC (rev 495)
@@ -70,8 +70,21 @@
static void print_usage(void)
{
fprintf(stderr,
- "Usage: fsck.ocfs2 [-s <superblock>] [-B <blksize>]\n"
- " <filename>\n");
+ "Usage: fsck.ocfs2 [ -fGnpuvy ] [ -b superblock block ]\n"
+ " [ -B block size ] device\n"
+ "\n"
+ "Critical flags for emergency repair:\n"
+ " -n Check but don't change the file system\n"
+ " -y Answer 'yes' to all repair questions\n"
+ " -f Force checking even if file system is clean\n"
+ "\n"
+ "Less critical flags:\n"
+ " -b superblock Treat given block as the super block\n"
+ " -B blocksize Force the given block size\n"
+ " -G Ask to fix mismatched inode generations\n"
+ " -u Access the device with buffering\n"
+ " -V Output fsck.ocfs2's version\n"
+ );
}
static uint64_t read_number(const char *num)
@@ -496,7 +509,7 @@
print_usage();
goto out;
break;
- }
+
}
More information about the Ocfs2-tools-commits
mailing list