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:
parent
a30219a8c0
commit
490226fc47
@ -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)
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user