From b55199eaf749c0d843955091ab6a9f4d0aca3213 Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Mon, 19 Jul 1999 15:37:46 +0000 Subject: [PATCH] ChangeLog, unix.c: unix.c (usage): Add minimalist emergency help to the usage message. --- e2fsck/ChangeLog | 5 +++++ e2fsck/unix.c | 14 ++++++++++++++ 2 files changed, 19 insertions(+) diff --git a/e2fsck/ChangeLog b/e2fsck/ChangeLog index c25e478..8f5b861 100644 --- a/e2fsck/ChangeLog +++ b/e2fsck/ChangeLog @@ -1,3 +1,8 @@ +1999-07-19 + + * unix.c (usage): Add minimalist emergency help to the usage + message. + 1999-07-18 * unix.c: Add support for calculating a progress bar if the -C0 diff --git a/e2fsck/unix.c b/e2fsck/unix.c index e33a814..ba1aa6b 100644 --- a/e2fsck/unix.c +++ b/e2fsck/unix.c @@ -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); } -- 1.8.3.1