]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
dumpe2fs: print journal's s_errno field if it is non-zero
authorTheodore Ts'o <tytso@mit.edu>
Thu, 31 May 2012 23:18:18 +0000 (19:18 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 31 May 2012 23:18:18 +0000 (19:18 -0400)
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
misc/dumpe2fs.c

index 8f4f2e4e5d801e7b2755bd6cac2f9c32c3dc822a..8be57642d644be8d89c7e249823b5bb630e59371 100644 (file)
@@ -382,6 +382,9 @@ static void print_inline_journal_information(ext2_filsys fs)
               (unsigned int)ntohl(jsb->s_maxlen),
               (unsigned int)ntohl(jsb->s_sequence),
               (unsigned int)ntohl(jsb->s_start));
+       if (jsb->s_errno != 0)
+               printf(_("Journal errno:            %d\n"),
+                      (int) ntohl(jsb->s_errno));
 }
 
 static void print_journal_information(ext2_filsys fs)