2007-02-26 15:40:21 +00:00
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include "kerncompat.h"
|
|
|
|
#include "radix-tree.h"
|
|
|
|
#include "ctree.h"
|
|
|
|
#include "disk-io.h"
|
|
|
|
#include "print-tree.h"
|
|
|
|
|
2007-02-28 14:40:58 +00:00
|
|
|
int main(int ac, char **av) {
|
2007-02-26 15:40:21 +00:00
|
|
|
struct ctree_super_block super;
|
|
|
|
struct ctree_root *root;
|
|
|
|
radix_tree_init();
|
|
|
|
root = open_ctree("dbfile", &super);
|
|
|
|
printf("root tree\n");
|
|
|
|
print_tree(root, root->node);
|
|
|
|
printf("map tree\n");
|
|
|
|
print_tree(root->extent_root, root->extent_root->node);
|
|
|
|
return 0;
|
|
|
|
}
|