From 490226fc475232e0b158cf9fdc8670a663da4efe Mon Sep 17 00:00:00 2001 From: Petr Rockai Date: Tue, 1 Apr 2014 14:46:22 +0200 Subject: [PATCH] pvs: Wipe persistent filters when given a device argument. --- test/shell/lvmcache-exercise.sh | 2 -- tools/reporter.c | 3 +++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/test/shell/lvmcache-exercise.sh b/test/shell/lvmcache-exercise.sh index 785ab17e2..b7c584ba3 100644 --- a/test/shell/lvmcache-exercise.sh +++ b/test/shell/lvmcache-exercise.sh @@ -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) diff --git a/tools/reporter.c b/tools/reporter.c index 602f17303..e070bc232 100644 --- a/tools/reporter.c +++ b/tools/reporter.c @@ -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);