summaryrefslogtreecommitdiff
path: root/debug-tree.c
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2007-04-05 14:29:12 -0400
committerDavid Woodhouse <dwmw2@hera.kernel.org>2007-04-05 14:29:12 -0400
commitd785b7d058b78176083a0f314da1bc114ad2fa9b (patch)
tree27f4737987dcb9855d994bfd42125053d4e35a7d /debug-tree.c
parentb6414c8ee26632d99a3763cd493c4cff8fe8e950 (diff)
uuids
Diffstat (limited to 'debug-tree.c')
-rw-r--r--debug-tree.c5
1 files changed, 5 insertions, 0 deletions
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 <stdio.h>
#include <stdlib.h>
+#include <uuid/uuid.h>
#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;
}