summaryrefslogtreecommitdiff
path: root/print-tree.c
diff options
context:
space:
mode:
authorSage Weil <sage@newdream.net>2010-09-09 11:46:22 +0800
committerChris Mason <chris.mason@oracle.com>2010-09-23 20:26:49 -0400
commit595cb1df15c47ffc9f119d7c3f5e3717d2b5c04d (patch)
tree1a3500cccd2c3a01ea255ef4962a4b9699b7f93a /print-tree.c
parent48f16a69d76b2a9c946e2f3648b9f896ce8de3e7 (diff)
only print FIRST_CHUNK_TREE for chunk items in debug-tree
Otherwise we print FIRST_CHUNK_TREE for any objectid 256, which e.g. for the root tree is the first snap/subvol. Signed-off-by: Sage Weil <sage@newdream.net>
Diffstat (limited to 'print-tree.c')
-rw-r--r--print-tree.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/print-tree.c b/print-tree.c
index bd8af132..ac575d54 100644
--- a/print-tree.c
+++ b/print-tree.c
@@ -413,8 +413,11 @@ static void print_objectid(unsigned long long objectid, u8 type)
printf("MULTIPLE");
break;
case BTRFS_FIRST_CHUNK_TREE_OBJECTID:
- printf("FIRST_CHUNK_TREE");
- break;
+ if (type == BTRFS_CHUNK_ITEM_KEY) {
+ printf("FIRST_CHUNK_TREE");
+ break;
+ }
+ /* fall-thru */
default:
printf("%llu", objectid);
}