path: root/print-tree.h
diff options
authorQu Wenruo <>2016-08-29 16:08:59 +0800
committerDavid Sterba <>2016-09-05 10:04:04 +0200
commit7aafabd2b8ac17645fb58bd27cfe238ed2908c1a (patch)
treec2ce899428ae9de930fa127d425b5b4f3d9180bc /print-tree.h
parent6819fbcdcab63c2d95da1a2997e37be9a71ca533 (diff)
btrfs-progs: Enhance and export print_objectid function
This function is quite useful for a lot of error report. Enhance it to support custom output other than stdout. And export it for later btrfsck enhancement. Signed-off-by: Qu Wenruo <> Signed-off-by: David Sterba <>
Diffstat (limited to 'print-tree.h')
1 files changed, 1 insertions, 0 deletions
diff --git a/print-tree.h b/print-tree.h
index f0153c18..73fb3e8e 100644
--- a/print-tree.h
+++ b/print-tree.h
@@ -24,4 +24,5 @@ void btrfs_print_tree(struct btrfs_root *root, struct extent_buffer *t, int foll
void btrfs_print_key(struct btrfs_disk_key *disk_key);
void print_chunk(struct extent_buffer *eb, struct btrfs_chunk *chunk);
void print_extent_item(struct extent_buffer *eb, int slot, int metadata);
+void print_objectid(FILE *stream, u64 objectid, u8 type);