Whamcloud - gitweb
ChangeLog, unix.c:
authorTheodore Ts'o <tytso@mit.edu>
Mon, 19 Jul 1999 15:37:46 +0000 (15:37 +0000)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 19 Jul 1999 15:37:46 +0000 (15:37 +0000)
  unix.c (usage): Add minimalist emergency help to the usage message.

e2fsck/ChangeLog
e2fsck/unix.c

index c25e478..8f5b861 100644 (file)
@@ -1,3 +1,8 @@
+1999-07-19    <tytso@valinux.com>
+
+       * unix.c (usage): Add minimalist emergency help to the usage
+               message. 
+
 1999-07-18    <tytso@valinux.com>
 
        * unix.c: Add support for calculating a progress bar if the -C0
index e33a814..ba1aa6b 100644 (file)
@@ -63,6 +63,20 @@ static void usage(e2fsck_t ctx)
                "\t\t[-I inode_buffer_blocks] [-P process_inode_size]\n"
                "\t\t[-l|-L bad_blocks_file] [-C fd] device\n",
                ctx->program_name);
+
+       fprintf(stderr, "\nEmergency help:\n"
+               " -p                   Automatic repair (no questions)\n"
+               " -n                   Make no changes to the filesystem\n"
+               " -y                   Assume \"yes\" to all questions\n"
+               " -c                   Check for bad blocks\n"
+               " -f                   Force checking even if filesystem is marked clean\n"
+               " -v                   Be verbose\n"
+               " -b superblock        Use alternative superblock\n"
+               " -B blocksize         Force blocksize when looking for superblock\n"
+               " -l bad_blocks_file   Add to badblocks list\n"
+               " -L bad_blocks_file   Set badblocks list\n"
+               );
+
        exit(FSCK_USAGE);
 }