summaryrefslogtreecommitdiff
path: root/btrfs-list.h
diff options
context:
space:
mode:
authorWang Shilong <wangsl-fnst@cn.fujistu.com>2012-09-28 01:04:20 +0800
committerroot <root@localhost.localdomain>2012-10-04 16:26:33 -0400
commita1e89891eb6af5381539d9875b85c196150171b6 (patch)
treea6d8ba8fd0874e0fffc8c42593492a37b2b4188e /btrfs-list.h
parent0f53cf81f66f4b62f68661f0d5a1a919b1db2686 (diff)
Btrfs-Progs: fix subvolumes's some full_path invaild problems.
In the privous way, we list all the subvolumes in the filesystem default. But if a subvolume mounts on another directory, some result's full_path may be invaild. According to this, we try to list subvolumes under directoy only by default. In this way, all the subvolume can be arrived by the full_path. Signed-off-by: Wang Shilong <wangsl-fnst@cn.fujitsu.com>
Diffstat (limited to 'btrfs-list.h')
-rw-r--r--btrfs-list.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/btrfs-list.h b/btrfs-list.h
index 9d3687ea..cde4b3cc 100644
--- a/btrfs-list.h
+++ b/btrfs-list.h
@@ -70,6 +70,7 @@ enum btrfs_list_filter_enum {
BTRFS_LIST_FILTER_CGEN_EQUAL = BTRFS_LIST_FILTER_CGEN,
BTRFS_LIST_FILTER_CGEN_LESS,
BTRFS_LIST_FILTER_CGEN_MORE,
+ BTRFS_LIST_FILTER_TOPID_EQUAL,
BTRFS_LIST_FILTER_MAX,
};
@@ -103,3 +104,4 @@ int btrfs_list_subvols(int fd, struct btrfs_list_filter_set *filter_set,
int btrfs_list_find_updated_files(int fd, u64 root_id, u64 oldest_gen);
int btrfs_list_get_default_subvolume(int fd, u64 *default_id);
char *btrfs_list_path_for_root(int fd, u64 root);
+u64 btrfs_list_get_path_rootid(int fd);