btrfs-progs: fix listing deleted subvolumes
authorDavid Sterba <dsterba@suse.cz>
Fri, 28 Mar 2014 12:39:57 +0000 (13:39 +0100)
committerChris Mason <clm@fb.com>
Sat, 5 Apr 2014 00:54:35 +0000 (17:54 -0700)
commitf9f9ee18a5a2e2a9c847efbb9299ec5940fc36e6
treebd7a27855730f6fdefa530339fadb88782656427
parent4724d7b07553ad27429bb2d61de1c5e8d4d7613d
btrfs-progs: fix listing deleted subvolumes

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.

It is now handled as a normal filter, that additionally sets the only_delete
global status in order to be processed before any other filters in
filter_root().

Signed-off-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Chris Mason <clm@fb.com>
btrfs-list.c