From d785b7d058b78176083a0f314da1bc114ad2fa9b Mon Sep 17 00:00:00 2001 From: Chris Mason Date: Thu, 5 Apr 2007 14:29:12 -0400 Subject: uuids --- debug-tree.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'debug-tree.c') diff --git a/debug-tree.c b/debug-tree.c index fd079696..5de69f2f 100644 --- a/debug-tree.c +++ b/debug-tree.c @@ -1,5 +1,6 @@ #include #include +#include #include "kerncompat.h" #include "radix-tree.h" #include "ctree.h" @@ -10,6 +11,7 @@ int main(int ac, char **av) { struct btrfs_super_block super; struct btrfs_root *root; + char uuidbuf[37]; if (ac != 2) { fprintf(stderr, "usage: %s device\n", av[0]); @@ -34,5 +36,8 @@ int main(int ac, char **av) { root->fs_info->tree_root->node); printf("total blocks %Lu\n", btrfs_super_total_blocks(&super)); printf("blocks used %Lu\n", btrfs_super_blocks_used(&super)); + uuidbuf[36] = '\0'; + uuid_unparse(super.fsid, uuidbuf); + printf("uuid %s\n", uuidbuf); return 0; } -- cgit v1.2.3