Blame SOURCES/lvm2-2_03_13-writecache-fix-lv_on_pmem.patch

f6e141
 lib/metadata/metadata.c | 3 +++
f6e141
 1 file changed, 3 insertions(+)
f6e141
f6e141
diff --git a/lib/metadata/metadata.c b/lib/metadata/metadata.c
f6e141
index 002d80c..1f65045 100644
f6e141
--- a/lib/metadata/metadata.c
f6e141
+++ b/lib/metadata/metadata.c
f6e141
@@ -4402,6 +4402,9 @@ int lv_on_pmem(struct logical_volume *lv)
f6e141
 
f6e141
 	dm_list_iterate_items(seg, &lv->segments) {
f6e141
 		for (s = 0; s < seg->area_count; s++) {
f6e141
+			if (seg_type(seg, s) != AREA_PV)
f6e141
+				continue;
f6e141
+
f6e141
 			pv = seg_pv(seg, s);
f6e141
 
f6e141
 			if (dev_is_pmem(lv->vg->cmd->dev_types, pv->dev)) {