diff options
author | Qu Wenruo <quwenruo@cn.fujitsu.com> | 2016-08-29 16:08:59 +0800 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-09-05 10:04:04 +0200 |
commit | 7aafabd2b8ac17645fb58bd27cfe238ed2908c1a (patch) | |
tree | c2ce899428ae9de930fa127d425b5b4f3d9180bc /print-tree.h | |
parent | 6819fbcdcab63c2d95da1a2997e37be9a71ca533 (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 <quwenruo@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'print-tree.h')
-rw-r--r-- | print-tree.h | 1 |
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); #endif |