* [PATCH] Btrfs: let btrfs_print_leaf print more about block group
@ 2017-05-26 0:08 Liu Bo
2017-05-26 15:50 ` David Sterba
0 siblings, 1 reply; 2+ messages in thread
From: Liu Bo @ 2017-05-26 0:08 UTC (permalink / raw)
To: linux-btrfs
This adds chunk_objectid and flags, with flags we can recognize whether
the block group is about data or metadata.
Signed-off-by: Liu Bo <bo.li.liu@oracle.com>
---
fs/btrfs/print-tree.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/fs/btrfs/print-tree.c b/fs/btrfs/print-tree.c
index cdafbf9..fcae61e 100644
--- a/fs/btrfs/print-tree.c
+++ b/fs/btrfs/print-tree.c
@@ -261,8 +261,11 @@ void btrfs_print_leaf(struct btrfs_fs_info *fs_info, struct extent_buffer *l)
case BTRFS_BLOCK_GROUP_ITEM_KEY:
bi = btrfs_item_ptr(l, i,
struct btrfs_block_group_item);
- pr_info("\t\tblock group used %llu\n",
- btrfs_disk_block_group_used(l, bi));
+ pr_info(
+ "\t\tblock group used %llu chunk_objectid %llu flags %llu\n",
+ btrfs_disk_block_group_used(l, bi),
+ btrfs_disk_block_group_chunk_objectid(l, bi),
+ btrfs_disk_block_group_flags(l, bi));
break;
case BTRFS_CHUNK_ITEM_KEY:
print_chunk(l, btrfs_item_ptr(l, i,
--
2.9.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] Btrfs: let btrfs_print_leaf print more about block group
2017-05-26 0:08 [PATCH] Btrfs: let btrfs_print_leaf print more about block group Liu Bo
@ 2017-05-26 15:50 ` David Sterba
0 siblings, 0 replies; 2+ messages in thread
From: David Sterba @ 2017-05-26 15:50 UTC (permalink / raw)
To: Liu Bo; +Cc: linux-btrfs
On Thu, May 25, 2017 at 06:08:12PM -0600, Liu Bo wrote:
> This adds chunk_objectid and flags, with flags we can recognize whether
> the block group is about data or metadata.
>
> Signed-off-by: Liu Bo <bo.li.liu@oracle.com>
Reviewed-by: David Sterba <dsterba@suse.com>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-05-26 15:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-26 0:08 [PATCH] Btrfs: let btrfs_print_leaf print more about block group Liu Bo
2017-05-26 15:50 ` David Sterba
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).