Revert "lvm: do not pass --cache to vgscan"

This reverts commit 19b0ae6c65.
This commit is contained in:
Richard W.M. Jones
2018-07-25 12:39:02 +01:00
parent 55879b2f2c
commit 83fb657bec
2 changed files with 2 additions and 2 deletions

View File

@@ -147,7 +147,7 @@ rescan (void)
unlink (lvm_cache);
CLEANUP_FREE char *err = NULL;
int r = command (NULL, &err, "lvm", "vgscan", NULL);
int r = command (NULL, &err, "lvm", "vgscan", "--cache", NULL);
if (r == -1) {
reply_with_error ("vgscan: %s", err);
return -1;

View File

@@ -642,7 +642,7 @@ do_vgscan (void)
int r;
r = command (NULL, &err,
"lvm", "vgscan", NULL);
"lvm", "vgscan", "--cache", NULL);
if (r == -1) {
reply_with_error ("%s", err);
return -1;