From patchwork Fri Jun 1 00:14:55 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Theodore Ts'o X-Patchwork-Id: 162247 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id BD7BEB6FAF for ; Fri, 1 Jun 2012 10:15:04 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758724Ab2FAAPC (ORCPT ); Thu, 31 May 2012 20:15:02 -0400 Received: from li9-11.members.linode.com ([67.18.176.11]:46853 "EHLO imap.thunk.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758723Ab2FAAPB (ORCPT ); Thu, 31 May 2012 20:15:01 -0400 Received: from root (helo=tytso-glaptop.cam.corp.google.com) by imap.thunk.org with local-esmtp (Exim 4.72) (envelope-from ) id 1SaFW8-0007C8-5n; Fri, 01 Jun 2012 00:15:00 +0000 Received: from tytso by tytso-glaptop.cam.corp.google.com with local (Exim 4.71) (envelope-from ) id 1SaFW6-0006LI-Hu; Thu, 31 May 2012 20:14:58 -0400 From: Theodore Ts'o To: Ext4 Developers List Cc: Theodore Ts'o Subject: [PATCH 1/4] dumpe2fs: print journal's s_errno field if it is non-zero Date: Thu, 31 May 2012 20:14:55 -0400 Message-Id: <1338509698-24349-1-git-send-email-tytso@mit.edu> X-Mailer: git-send-email 1.7.10.2.552.gaa3bb87 X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: tytso@thunk.org X-SA-Exim-Scanned: No (on imap.thunk.org); SAEximRunCond expanded to false Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org Signed-off-by: "Theodore Ts'o" --- misc/dumpe2fs.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/misc/dumpe2fs.c b/misc/dumpe2fs.c index 8f4f2e4..8be5764 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)