btrfs-progs: check: introduce function to check data backref in extent tree
[platform/upstream/btrfs-progs.git] / btrfs-list.h
index 724e973..13f44c3 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2012 Fujitsu.  All rights reserved.
+ * Copyright (C) 2012 FUJITSU LIMITED.  All rights reserved.
  *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU General Public
  * Boston, MA 021110-1307, USA.
  */
 
+#ifndef __BTRFS_LIST_H__
+#define __BTRFS_LIST_H__
+
 #if BTRFS_FLAT_INCLUDES
 #include "kerncompat.h"
+#include "rbtree.h"
+#include "ioctl.h"
 #else
 #include <btrfs/kerncompat.h>
+#include <btrfs/rbtree.h>
+#include <btrfs/ioctl.h>
 #endif /* BTRFS_FLAT_INCLUDES */
 
+#include <time.h>
+
 #define BTRFS_LIST_LAYOUT_DEFAULT      0
 #define BTRFS_LIST_LAYOUT_TABLE        1
 #define BTRFS_LIST_LAYOUT_RAW          2
@@ -61,6 +70,7 @@ struct root_info {
 
        u8 uuid[BTRFS_UUID_SIZE];
        u8 puuid[BTRFS_UUID_SIZE];
+       u8 ruuid[BTRFS_UUID_SIZE];
 
        /* path from the subvol we live in to this root, including the
         * root's name.  This is null until we do the extra lookup ioctl.
@@ -110,6 +120,7 @@ enum btrfs_list_column_enum {
        BTRFS_LIST_TOP_LEVEL,
        BTRFS_LIST_OTIME,
        BTRFS_LIST_PUUID,
+       BTRFS_LIST_RUUID,
        BTRFS_LIST_UUID,
        BTRFS_LIST_PATH,
        BTRFS_LIST_ALL,
@@ -163,3 +174,5 @@ int btrfs_list_get_default_subvolume(int fd, u64 *default_id);
 char *btrfs_list_path_for_root(int fd, u64 root);
 int btrfs_list_get_path_rootid(int fd, u64 *treeid);
 int btrfs_get_subvol(int fd, struct root_info *the_ri);
+
+#endif