projects
/
platform
/
upstream
/
btrfs-progs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
48f16a6
)
only print FIRST_CHUNK_TREE for chunk items in debug-tree
author
Sage Weil
<sage@newdream.net>
Thu, 9 Sep 2010 03:46:22 +0000
(11:46 +0800)
committer
Chris Mason
<chris.mason@oracle.com>
Fri, 24 Sep 2010 00:26:49 +0000
(20:26 -0400)
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>
print-tree.c
patch
|
blob
|
history
diff --git
a/print-tree.c
b/print-tree.c
index
bd8af13
..
ac575d5
100644
(file)
--- 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);
}