Commit | Line | Data |
---|---|---|
fec577fb CM |
1 | #include <stdio.h> |
2 | #include <stdlib.h> | |
3 | #include "kerncompat.h" | |
4 | #include "radix-tree.h" | |
5 | #include "ctree.h" | |
6 | #include "disk-io.h" | |
7 | #include "print-tree.h" | |
8 | ||
af86d07e | 9 | int main(int ac, char **av) { |
234b63a0 CM |
10 | struct btrfs_super_block super; |
11 | struct btrfs_root *root; | |
fec577fb CM |
12 | radix_tree_init(); |
13 | root = open_ctree("dbfile", &super); | |
14 | printf("root tree\n"); | |
234b63a0 | 15 | btrfs_print_tree(root, root->node); |
fec577fb | 16 | printf("map tree\n"); |
234b63a0 | 17 | btrfs_print_tree(root->extent_root, root->extent_root->node); |
fec577fb CM |
18 | return 0; |
19 | } |