* [PATCH] Btrfs-progs: only print FIRST_CHUNK_TREE for chunk items in debug-tree
@ 2010-02-03 19:13 Sage Weil
0 siblings, 0 replies; only message in thread
From: Sage Weil @ 2010-02-03 19:13 UTC (permalink / raw)
To: linux-btrfs; +Cc: Sage Weil
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 | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/print-tree.c b/print-tree.c
index 59f4358..de064e1 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);
}
--
1.5.6.5
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2010-02-03 19:13 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-02-03 19:13 [PATCH] Btrfs-progs: only print FIRST_CHUNK_TREE for chunk items in debug-tree Sage Weil
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.