[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20140302071742.28217.895.stgit@birch.djwong.org>
Date: Sat, 01 Mar 2014 23:17:42 -0800
From: "Darrick J. Wong" <darrick.wong@...cle.com>
To: tytso@....edu, darrick.wong@...cle.com
Cc: linux-ext4@...r.kernel.org
Subject: [PATCH 10/32] dumpe2fs: add switch to disable checksum verification
Add a -n switch to turn off checksum verification.
Signed-off-by: Darrick J. Wong <darrick.wong@...cle.com>
---
misc/dumpe2fs.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/misc/dumpe2fs.c b/misc/dumpe2fs.c
index ae54f8a..45eddaf 100644
--- a/misc/dumpe2fs.c
+++ b/misc/dumpe2fs.c
@@ -582,7 +582,9 @@ int main (int argc, char ** argv)
if (argc && *argv)
program_name = *argv;
- while ((c = getopt (argc, argv, "bfhixVo:")) != EOF) {
+ flags = EXT2_FLAG_JOURNAL_DEV_OK | EXT2_FLAG_SOFTSUPP_FEATURES |
+ EXT2_FLAG_64BITS;
+ while ((c = getopt(argc, argv, "bfhixVo:n")) != EOF) {
switch (c) {
case 'b':
print_badblocks++;
@@ -608,6 +610,9 @@ int main (int argc, char ** argv)
case 'x':
hex_format++;
break;
+ case 'n':
+ flags |= EXT2_FLAG_IGNORE_CSUM_ERRORS;
+ break;
default:
usage();
}
@@ -615,7 +620,6 @@ int main (int argc, char ** argv)
if (optind > argc - 1)
usage();
device_name = argv[optind++];
- flags = EXT2_FLAG_JOURNAL_DEV_OK | EXT2_FLAG_SOFTSUPP_FEATURES | EXT2_FLAG_64BITS;
if (force)
flags |= EXT2_FLAG_FORCE;
if (image_dump)
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists