summaryrefslogtreecommitdiff
path: root/btrfs-list.h
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.cz>2013-10-23 19:00:09 +0200
committerChris Mason <chris.mason@fusionio.com>2013-10-24 05:57:44 -0400
commit4fc17596aaa2b03ee38c467585465923d62b1510 (patch)
tree46453ce5137b7e87370006229d4d46ceb1f3e1fb /btrfs-list.h
parentb91d84abc0df2195aaa06a79b565d8852b3099b2 (diff)
btrfs-progs: add filter for deleted but uncleanded subvolumes
New option to subvolume list that acts as a global filter and applies the other filters to either live subvolumes or the uncleaned ones. The path to the deleted subvolumes is lost at the deletion time, sample output looks like: ID 259 gen 7 top level 0 path <FS_TREE>/DELETED Signed-off-by: David Sterba <dsterba@suse.cz> Signed-off-by: Chris Mason <chris.mason@fusionio.com>
Diffstat (limited to 'btrfs-list.h')
-rw-r--r--btrfs-list.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/btrfs-list.h b/btrfs-list.h
index 5164467..724e973 100644
--- a/btrfs-list.h
+++ b/btrfs-list.h
@@ -71,6 +71,8 @@ struct root_info {
char *name;
char *full_path;
+
+ int deleted;
};
typedef int (*btrfs_list_filter_func)(struct root_info *, u64);
@@ -90,6 +92,7 @@ struct btrfs_list_comparer {
struct btrfs_list_filter_set {
int total;
int nfilters;
+ int only_deleted;
struct btrfs_list_filter filters[0];
};
@@ -127,6 +130,7 @@ enum btrfs_list_filter_enum {
BTRFS_LIST_FILTER_TOPID_EQUAL,
BTRFS_LIST_FILTER_FULL_PATH,
BTRFS_LIST_FILTER_BY_PARENT,
+ BTRFS_LIST_FILTER_DELETED,
BTRFS_LIST_FILTER_MAX,
};