From patchwork Mon Feb 9 20:03:17 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Josef Bacik X-Patchwork-Id: 5803181 Return-Path: X-Original-To: patchwork-linux-btrfs@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 4FE60BF6C3 for ; Mon, 9 Feb 2015 20:04:03 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 921A62011B for ; Mon, 9 Feb 2015 20:04:02 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id AC2442011E for ; Mon, 9 Feb 2015 20:04:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760911AbbBIUDz (ORCPT ); Mon, 9 Feb 2015 15:03:55 -0500 Received: from mx0a-00082601.pphosted.com ([67.231.145.42]:62654 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1760898AbbBIUDx (ORCPT ); Mon, 9 Feb 2015 15:03:53 -0500 Received: from pps.filterd (m0044012 [127.0.0.1]) by mx0a-00082601.pphosted.com (8.14.5/8.14.5) with SMTP id t19K1L5T028605; Mon, 9 Feb 2015 12:03:51 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wit.ai; h=from : to : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=mx2; bh=JedRg4ynm+OxrzumNkb6gFfYkKjQeR+4uE9bY/gCpmA=; b=q13DMQjS13wv9EmoofjsU/SDNg5GuUIG0wpa+pTmURmcEHLvgRqB6ntc1E2BftoSEA9I BvJkMQqcmIerDP5L6jA3SMHsVmd1RA9x1QcwrVQTJhEWG0tUltE28fYwgZdgw5kG4c2F IT3tnmdCqbMll7/ZNXGb/hIGUJMD8KE8ZFgfM9g6tbzhZ9OyBx2XYeppgtfyynoKzATe LvBOugmOEkAMmfAn58cZf3tGYUobyRARK94wkFkAly73Hh15Zt4sS2Jv9vPIXwxd8EtT tNQryembP+FPT7lIyXWzRhwDzEwBX2wvMrQG2/e+NX481i26l1TMcWFTUmE309uVPkHd 9w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=fb.com; h=from : to : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=facebook; bh=JedRg4ynm+OxrzumNkb6gFfYkKjQeR+4uE9bY/gCpmA=; b=nfJqPvNjVUirMaXUYMcDAZLCCoqhr0eGXOMo11FQ/rbGatU+mnhjh1eFoIUspmkP25ir Bvo0mmrbhmTYm3nTHjdVyJPpGbLIeBOUSBcBBmNstz6Q1Ug5rT2VnKMTUd1hhXm3aTnD mLghzbz+7g/oYBoNVLXnU+NNCcvBddcJqzs= Received: from mail.thefacebook.com ([199.201.64.23]) by mx0a-00082601.pphosted.com with ESMTP id 1sf339822c-1 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT); Mon, 09 Feb 2015 12:03:50 -0800 Received: from localhost (192.168.57.29) by mail.thefacebook.com (192.168.16.12) with Microsoft SMTP Server (TLS) id 14.3.195.1; Mon, 9 Feb 2015 12:03:49 -0800 From: Josef Bacik To: , Subject: [PATCH 14/16] Btrfs-progs: make debug-tree spit out full_backref flag Date: Mon, 9 Feb 2015 15:03:17 -0500 Message-ID: <1423512199-16552-15-git-send-email-jbacik@fb.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1423512199-16552-1-git-send-email-jbacik@fb.com> References: <1423512199-16552-1-git-send-email-jbacik@fb.com> MIME-Version: 1.0 X-Originating-IP: [192.168.57.29] X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.13.68, 1.0.33, 0.0.0000 definitions=2015-02-09_02:2015-02-09, 2015-02-08, 1970-01-01 signatures=0 X-Proofpoint-Spam-Details: rule=fb_default_notspam policy=fb_default score=0 kscore.is_bulkscore=0 kscore.compositescore=0 circleOfTrustscore=2.87009407511322 compositescore=0.980601274849849 urlsuspect_oldscore=0.980601274849849 suspectscore=0 recipient_domain_to_sender_totalscore=0 phishscore=0 bulkscore=0 kscore.is_spamscore=0 recipient_to_sender_totalscore=0 recipient_domain_to_sender_domain_totalscore=64355 rbsscore=0.980601274849849 spamscore=0 recipient_to_sender_domain_totalscore=0 urlsuspectscore=0.9 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=7.0.1-1402240000 definitions=main-1502090197 X-FB-Internal: deliver Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID,T_RP_MATCHES_RCVD,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Currently btrfs-debug-tree ignores the FULL_BACKREF flag which makes it hard to figure out problems related to FULL_BACKREF. Thanks, Signed-off-by: Josef Bacik --- print-tree.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/print-tree.c b/print-tree.c index 3a7c13c..931a321 100644 --- a/print-tree.c +++ b/print-tree.c @@ -312,6 +312,10 @@ static void extent_flags_to_str(u64 flags, char *ret) } strcat(ret, "TREE_BLOCK"); } + if (flags & BTRFS_BLOCK_FLAG_FULL_BACKREF) { + strcat(ret, "|"); + strcat(ret, "FULL_BACKREF"); + } } void print_extent_item(struct extent_buffer *eb, int slot, int metadata)