diff options
author | Chris Mason <chris.mason@oracle.com> | 2007-02-26 10:40:21 -0500 |
---|---|---|
committer | David Woodhouse <dwmw2@hera.kernel.org> | 2007-02-26 10:40:21 -0500 |
commit | 8f3b86bae341d96e0aef7b7052bdf30e25df7d29 (patch) | |
tree | b54d4c7141ca746caf1a64b7d0510199c519487c /debug-tree.c | |
parent | f463391fd2bfe9041d79adaf61491c153cf41624 (diff) |
Add fsx-style randomized tree tester
Add debug-tree command to print the tree
Add extent-tree.c to the repo
Comment ctree.h
Diffstat (limited to 'debug-tree.c')
-rw-r--r-- | debug-tree.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/debug-tree.c b/debug-tree.c new file mode 100644 index 00000000..b2c5abfd --- /dev/null +++ b/debug-tree.c @@ -0,0 +1,19 @@ +#include <stdio.h> +#include <stdlib.h> +#include "kerncompat.h" +#include "radix-tree.h" +#include "ctree.h" +#include "disk-io.h" +#include "print-tree.h" + +int main() { + 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; +} |