9f5fae2fe6
Signed-off-by: Chris Mason <chris.mason@oracle.com>
27 lines
717 B
C
27 lines
717 B
C
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include "kerncompat.h"
|
|
#include "radix-tree.h"
|
|
#include "ctree.h"
|
|
#include "disk-io.h"
|
|
#include "print-tree.h"
|
|
#include "transaction.h"
|
|
|
|
int main(int ac, char **av) {
|
|
struct btrfs_super_block super;
|
|
struct btrfs_root *root;
|
|
radix_tree_init();
|
|
root = open_ctree("dbfile", &super);
|
|
printf("fs tree\n");
|
|
btrfs_print_tree(root, root->node);
|
|
printf("map tree\n");
|
|
btrfs_print_tree(root->fs_info->extent_root,
|
|
root->fs_info->extent_root->node);
|
|
printf("inode tree\n");
|
|
btrfs_print_tree(root->fs_info->inode_root,
|
|
root->fs_info->inode_root->node);
|
|
printf("root tree\n");
|
|
btrfs_print_tree(root->fs_info->tree_root,
|
|
root->fs_info->tree_root->node);
|
|
return 0;
|
|
}
|