mirror of
https://github.com/kdave/btrfs-progs
synced 2024-12-25 23:52:17 +00:00
8f3b86bae3
Add debug-tree command to print the tree Add extent-tree.c to the repo Comment ctree.h
20 lines
430 B
C
20 lines
430 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"
|
|
|
|
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;
|
|
}
|