aboutsummaryrefslogtreecommitdiff
path: root/fs/btrfs/debug-tree.c
blob: b2c5abfdc74a09f934355e593812f0f2e38f0bf5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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;
}