1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

pvs: Wipe persistent filters when given a device argument.

This commit is contained in:
Petr Rockai 2014-04-01 14:46:22 +02:00
parent a30219a8c0
commit 490226fc47
2 changed files with 3 additions and 2 deletions

View File

@ -24,8 +24,6 @@ fail pvs $(cat DEVICES)
vgcreate $vg1 "$dev2"
aux enable_dev "$dev1"
pvscan
# FIXME: above pvscan should not be needed
pvs "$dev1"
# reappearing device (rhbz 995440)

View File

@ -271,6 +271,9 @@ static int _report(struct cmd_context *cmd, int argc, char **argv,
report_type == LABEL ||
report_type == PVSEGS) ? 1 : 0;
if (args_are_pvs && argc)
cmd->filter->wipe(cmd->filter);
switch (report_type) {
case DEVTYPES:
keys = find_config_tree_str(cmd, report_devtypes_sort_CFG, NULL);