Blame SOURCES/0073-Revert-lvm-do-not-pass-cache-to-vgscan.patch

e9bfca
From d30cda40ffce15c28e316ec86c342a60881ae30f Mon Sep 17 00:00:00 2001
e9bfca
From: "Richard W.M. Jones" <rjones@redhat.com>
e9bfca
Date: Wed, 25 Jul 2018 12:39:02 +0100
e9bfca
Subject: [PATCH] Revert "lvm: do not pass --cache to vgscan"
e9bfca
e9bfca
This reverts commit 19b0ae6c6502c4833c73e1b1bfa47b43a40f21e9.
e9bfca
---
e9bfca
 daemon/lvm-filter.c | 2 +-
e9bfca
 daemon/lvm.c        | 2 +-
e9bfca
 2 files changed, 2 insertions(+), 2 deletions(-)
e9bfca
e9bfca
diff --git a/daemon/lvm-filter.c b/daemon/lvm-filter.c
e9bfca
index 9d877c104..c6dd35156 100644
e9bfca
--- a/daemon/lvm-filter.c
e9bfca
+++ b/daemon/lvm-filter.c
e9bfca
@@ -147,7 +147,7 @@ rescan (void)
e9bfca
   unlink (lvm_cache);
e9bfca
 
e9bfca
   CLEANUP_FREE char *err = NULL;
e9bfca
-  int r = command (NULL, &err, "lvm", "vgscan", NULL);
e9bfca
+  int r = command (NULL, &err, "lvm", "vgscan", "--cache", NULL);
e9bfca
   if (r == -1) {
e9bfca
     reply_with_error ("vgscan: %s", err);
e9bfca
     return -1;
e9bfca
diff --git a/daemon/lvm.c b/daemon/lvm.c
e9bfca
index 877bc5f6c..709a1e73b 100644
e9bfca
--- a/daemon/lvm.c
e9bfca
+++ b/daemon/lvm.c
e9bfca
@@ -642,7 +642,7 @@ do_vgscan (void)
e9bfca
   int r;
e9bfca
 
e9bfca
   r = command (NULL, &err,
e9bfca
-               "lvm", "vgscan", NULL);
e9bfca
+               "lvm", "vgscan", "--cache", NULL);
e9bfca
   if (r == -1) {
e9bfca
     reply_with_error ("%s", err);
e9bfca
     return -1;
e9bfca
-- 
8ff76f
2.20.1
e9bfca