lvm: do not pass --cache to vgscan

This breaks lvm setups with no lvmetad, and it seems to not be needed
even with lvmetad.

Reverts parts of commit 2c4f154b91.
This commit is contained in:
Pino Toscano
2016-07-29 17:21:25 +02:00
parent 12c05d5c36
commit 19b0ae6c65
2 changed files with 2 additions and 2 deletions

View File

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

View File

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