From 7517074585ca042c0bd06481a359d617fabdc032 Mon Sep 17 00:00:00 2001
From: wangjufeng <wangjufeng@huawei.com>
Date: Wed, 20 Nov 2019 17:37:03 +0800
Subject: [PATCH] revert "label_scan: remove extra label scan and read for
 orphan PVs"

In commit 79c4971210a6337563ffa2fca08fb636423d93d4, it removed the
 modification of *consistent in vg_read_orphans(), it will lead to pvs
 --readonly return failure.
---
 lib/metadata/metadata.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/metadata/metadata.c b/lib/metadata/metadata.c
index 237e57b..35f35bd 100644
--- a/lib/metadata/metadata.c
+++ b/lib/metadata/metadata.c
@@ -3426,6 +3426,7 @@ struct volume_group *vg_read_orphans(struct cmd_context *cmd,
 	if (!lvmcache_foreach_pv(vginfo, _vg_read_orphan_pv, &baton))
 		return_NULL;
 
+	*consistent = 1;
 	return vg;
 }
 
-- 
2.19.1

