search for: filter_by_par

Displaying 1 result from an estimated 1 matches for "filter_by_par".

2013 Oct 23
0
[PATCH] btrfs-progs: add filter for deleted but uncleanded subvolumes
...st.c | 24 +++++++++++++++++++++--- btrfs-list.h | 4 ++++ cmds-subvolume.c | 8 +++++++- 3 files changed, 32 insertions(+), 4 deletions(-) diff --git a/btrfs-list.c b/btrfs-list.c index 9411e4d..f3618b9 100644 --- a/btrfs-list.c +++ b/btrfs-list.c @@ -1173,6 +1173,11 @@ static int filter_by_parent(struct root_info *ri, u64 data) return !uuid_compare(ri->puuid, (u8 *)(unsigned long)data); } +static int filter_deleted(struct root_info *ri, u64 data) +{ + return ri->deleted; +} + static btrfs_list_filter_func all_filter_funcs[] = { [BTRFS_LIST_FILTER_ROOTID] = filter_by_rootid...