From: Theodore Ts'o Date: Sat, 15 Nov 2008 20:05:51 +0000 (-0500) Subject: dumpe2fs: Only print inline journal information if the journal is internal X-Git-Tag: v1.41.4~41 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=a11d0746b4fb2ac41dcb5e7acf31942b1e8925e2;p=tools%2Fe2fsprogs.git dumpe2fs: Only print inline journal information if the journal is internal Currently dumpe2fs displays an error if run on a filesystem with an external journal. Signed-off-by: "Theodore Ts'o" --- diff --git a/misc/dumpe2fs.c b/misc/dumpe2fs.c index 9ef5476..61b82f6 100644 --- a/misc/dumpe2fs.c +++ b/misc/dumpe2fs.c @@ -517,8 +517,9 @@ int main (int argc, char ** argv) ext2fs_close(fs); exit(0); } - if (fs->super->s_feature_compat & - EXT3_FEATURE_COMPAT_HAS_JOURNAL) + if ((fs->super->s_feature_compat & + EXT3_FEATURE_COMPAT_HAS_JOURNAL) && + (fs->super->s_journal_inum != 0)) print_inline_journal_information(fs); list_bad_blocks(fs, 0); if (header_only) {