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