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