summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Teigland <teigland@redhat.com>2019-02-26 10:30:11 -0600
committerDavid Teigland <teigland@redhat.com>2019-02-26 10:30:11 -0600
commit74460f70efca7c8ed76e5980b300668a1a328cc4 (patch)
tree461b18af3cceb3122189d6dbf8c0ceac8ab5b735
parent9aea6ae956543995b30282c984af5fdad2347f07 (diff)
downloadlvm2-74460f70efca7c8ed76e5980b300668a1a328cc4.tar.gz
pvscan: fix hint recreation
Restore part of the fix from f0089472e7 that was lost in the process of backporting 74a388cca1.
-rw-r--r--tools/pvscan.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/pvscan.c b/tools/pvscan.c
index c6f29023d..389aafafc 100644
--- a/tools/pvscan.c
+++ b/tools/pvscan.c
@@ -891,6 +891,9 @@ int pvscan_cache_cmd(struct cmd_context *cmd, int argc, char **argv)
_online_files_remove(_vgs_online_dir);
_online_pvscan_all_devs(cmd, complete_vgnames, NULL);
_unlock_online();
+
+ cmd->pvscan_recreate_hints = 0;
+ cmd->use_hints = 0;
goto activate;
}