From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from cn.fujitsu.com ([59.151.112.132]:43543 "EHLO heian.cn.fujitsu.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1752926AbaKXJJP (ORCPT ); Mon, 24 Nov 2014 04:09:15 -0500 Received: from G08CNEXCHPEKD02.g08.fujitsu.local (localhost.localdomain [127.0.0.1]) by edo.cn.fujitsu.com (8.14.3/8.13.1) with ESMTP id sAO98rq8012233 for ; Mon, 24 Nov 2014 17:08:53 +0800 From: Qu Wenruo To: Subject: [PATCH 1/6] btrfs-progs: print root dir verbose error in fsck Date: Mon, 24 Nov 2014 17:07:00 +0800 Message-ID: <1416820025-10373-2-git-send-email-quwenruo@cn.fujitsu.com> In-Reply-To: <1416820025-10373-1-git-send-email-quwenruo@cn.fujitsu.com> References: <1416820025-10373-1-git-send-email-quwenruo@cn.fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-btrfs-owner@vger.kernel.org List-ID: Before this patch, when btrfsck found an error in root dir, it will only output the following message "root %llu root dir %llu error" without any detailed error. Just add print_inode_error() to print out the whole error. Signed-off-by: Qu Wenruo --- cmds-check.c | 1 + 1 file changed, 1 insertion(+) diff --git a/cmds-check.c b/cmds-check.c index 389674f..9fc1410 100644 --- a/cmds-check.c +++ b/cmds-check.c @@ -1984,6 +1984,7 @@ static int check_inode_recs(struct btrfs_root *root, fprintf(stderr, "root %llu root dir %llu error\n", (unsigned long long)root->root_key.objectid, (unsigned long long)root_dirid); + print_inode_error(root, rec); error++; } } else { -- 2.1.3