[PATCH] btrfs-progs: fix listing deleted subvolumes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The real check whether to show deleted or live subvolumes was skipped if
just '-d' was specified without other filters. The 'deleted' filter was
not accounted.

Signed-off-by: David Sterba <dsterba@xxxxxxx>
---
 btrfs-list.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/btrfs-list.c b/btrfs-list.c
index 912b27c3deca..c34f85e9991f 100644
--- a/btrfs-list.c
+++ b/btrfs-list.c
@@ -1218,6 +1218,7 @@ int btrfs_list_setup_filter(struct btrfs_list_filter_set **filter_set,
 
 	if (filter == BTRFS_LIST_FILTER_DELETED) {
 		set->only_deleted = 1;
+		set->nfilters++;
 		return 0;
 	}
 
-- 
1.7.9

--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux