summaryrefslogtreecommitdiff
path: root/cmd/btrfs-dump-tree/main.go
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2022-06-05 10:02:35 -0600
committerLuke Shumaker <lukeshu@lukeshu.com>2022-06-05 10:02:35 -0600
commitba31d3a4a48ca96517db50cdfa7d71b7721c5b55 (patch)
tree2d698bcf1c1442eed0d90650086284a72afa265e /cmd/btrfs-dump-tree/main.go
parent32840c8b2314164848c30305315eba6907f4acad (diff)
more
Diffstat (limited to 'cmd/btrfs-dump-tree/main.go')
-rw-r--r--cmd/btrfs-dump-tree/main.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/cmd/btrfs-dump-tree/main.go b/cmd/btrfs-dump-tree/main.go
index 6a8a7e6..52ee441 100644
--- a/cmd/btrfs-dump-tree/main.go
+++ b/cmd/btrfs-dump-tree/main.go
@@ -227,8 +227,9 @@ func printTree(fs *btrfs.FS, root btrfs.LogicalAddr) error {
// // TODO
//case btrfsitem.EXTENT_DATA_KEY:
// // TODO
- //case btrfsitem.BLOCK_GROUP_ITEM_KEY:
- // // TODO
+ case btrfsitem.BlockGroup:
+ fmt.Printf("\t\tblock group used %d chunk_objectid %d flags %v\n",
+ body.Used, body.ChunkObjectID, body.Flags)
//case btrfsitem.FREE_SPACE_INFO_KEY:
// // TODO
//case btrfsitem.FREE_SPACE_EXTENT_KEY: