From d30cda40ffce15c28e316ec86c342a60881ae30f Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Wed, 25 Jul 2018 12:39:02 +0100 Subject: [PATCH] Revert "lvm: do not pass --cache to vgscan" This reverts commit 19b0ae6c6502c4833c73e1b1bfa47b43a40f21e9. --- daemon/lvm-filter.c | 2 +- daemon/lvm.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/daemon/lvm-filter.c b/daemon/lvm-filter.c index 9d877c104..c6dd35156 100644 --- a/daemon/lvm-filter.c +++ b/daemon/lvm-filter.c @@ -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; diff --git a/daemon/lvm.c b/daemon/lvm.c index 877bc5f6c..709a1e73b 100644 --- a/daemon/lvm.c +++ b/daemon/lvm.c @@ -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; -- 2.17.2