blob: de45fb4dfdddf14b6082dda3bf63014eb339a888 [file] [log] [blame]
Chris Masonfec577f2007-02-26 10:40:21 -05001#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
Chris Masonaf86d072007-02-28 09:40:58 -05009int main(int ac, char **av) {
Chris Mason234b63a2007-03-13 10:46:10 -040010 struct btrfs_super_block super;
11 struct btrfs_root *root;
Chris Masonfec577f2007-02-26 10:40:21 -050012 radix_tree_init();
13 root = open_ctree("dbfile", &super);
Chris Mason3768f362007-03-13 16:47:54 -040014 printf("fs tree\n");
Chris Mason234b63a2007-03-13 10:46:10 -040015 btrfs_print_tree(root, root->node);
Chris Masonfec577f2007-02-26 10:40:21 -050016 printf("map tree\n");
Chris Mason234b63a2007-03-13 10:46:10 -040017 btrfs_print_tree(root->extent_root, root->extent_root->node);
Chris Mason3768f362007-03-13 16:47:54 -040018 printf("root tree\n");
19 btrfs_print_tree(root->tree_root, root->tree_root->node);
Chris Masonfec577f2007-02-26 10:40:21 -050020 return 0;
21}