summaryrefslogtreecommitdiff
path: root/tools/pvscan.c
diff options
context:
space:
mode:
authorDavid Teigland <teigland@redhat.com>2021-07-27 15:28:34 -0500
committerDavid Teigland <teigland@redhat.com>2021-08-05 13:20:26 -0500
commitd3d6a0e820ff930a5a7c137e7bbeb0225e251df7 (patch)
treee8d305572af8d62336cc26046ff0b76cb8bb76af /tools/pvscan.c
parentbf6dfc248a1de0250eebe8229cae40d55c247ddd (diff)
downloadlvm2-d3d6a0e820ff930a5a7c137e7bbeb0225e251df7.tar.gz
devices file: limit warnings about devices file entries not found
All commands were printing a warning if a devices file entry was not found. Limit this to commands that report/display lvm state.
Diffstat (limited to 'tools/pvscan.c')
-rw-r--r--tools/pvscan.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/pvscan.c b/tools/pvscan.c
index 6787c4cfc..46d0786bc 100644
--- a/tools/pvscan.c
+++ b/tools/pvscan.c
@@ -1620,6 +1620,8 @@ int pvscan_cache_cmd(struct cmd_context *cmd, int argc, char **argv)
cmd->check_devs_used = 0;
+ cmd->print_device_id_not_found = 0;
+
event_activation = find_config_tree_bool(cmd, global_event_activation_CFG, NULL);
if (do_activate && !event_activation) {