mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
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:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user