diff options
author | Theodore Ts'o <tytso@mit.edu> | 2012-05-31 19:18:18 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2012-05-31 19:18:18 -0400 |
commit | 9906409e138e625a6190d3d531ad56af90d28f73 (patch) | |
tree | e10076469f4fd7749900202ff3a6773c9924f413 /misc/dumpe2fs.c | |
parent | cd5bb7c87b1891e21c095b3ecd549ef44a067c08 (diff) | |
download | e2fsprogs-9906409e138e625a6190d3d531ad56af90d28f73.tar.gz |
dumpe2fs: print journal's s_errno field if it is non-zero
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'misc/dumpe2fs.c')
-rw-r--r-- | misc/dumpe2fs.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/misc/dumpe2fs.c b/misc/dumpe2fs.c index 8f4f2e4e..8be57642 100644 --- a/misc/dumpe2fs.c +++ b/misc/dumpe2fs.c @@ -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) |