WHATS_NEW | 2 ++ lib/metadata/lv.c | 2 +- lib/report/properties.c | 4 ++-- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/WHATS_NEW b/WHATS_NEW index ef5cc83..7c77c68 100644 --- a/WHATS_NEW +++ b/WHATS_NEW @@ -1,5 +1,7 @@ Version 2.02.116 - ==================================== + Fix lvm2app lvm_lv_get_property return value for fields with info/status ioctl. + Fix lvm2app regression in lvm_lv_get_attr causing unknown values (2.02.115). Preserve chunk size with repair and metadata swap of a thin pool. Fix raid --splitmirror 1 functionality (2.02.112). Fix tree preload to handle splitting raid images. diff --git a/lib/metadata/lv.c b/lib/metadata/lv.c index 9052e63..c3c5d4a 100644 --- a/lib/metadata/lv.c +++ b/lib/metadata/lv.c @@ -831,7 +831,7 @@ char *lv_attr_dup(struct dm_pool *mem, const struct logical_volume *lv) if (!(status.seg_status.mem = dm_pool_create("reporter_pool", 1024))) return_0; - if (!lv_info_with_seg_status(lv->vg->cmd, lv, first_seg(lv), 1, &status, 1, 1)) + if (!(status.info_ok = lv_info_with_seg_status(lv->vg->cmd, lv, first_seg(lv), 1, &status, 1, 1))) goto_bad; ret = lv_attr_dup_with_info_and_seg_status(mem, &status); diff --git a/lib/report/properties.c b/lib/report/properties.c index 8866928..c1c9563 100644 --- a/lib/report/properties.c +++ b/lib/report/properties.c @@ -476,7 +476,7 @@ int lvseg_get_property(const struct lv_segment *lvseg, int lv_get_property(const struct logical_volume *lv, struct lvm_property_type *prop) { - return prop_get_property(_properties, lv, prop, LVS); + return prop_get_property(_properties, lv, prop, LVS | LVSINFO | LVSSTATUS | LVSINFOSTATUS); } int vg_get_property(const struct volume_group *vg, @@ -500,7 +500,7 @@ int pv_get_property(const struct physical_volume *pv, int lv_set_property(struct logical_volume *lv, struct lvm_property_type *prop) { - return prop_set_property(_properties, lv, prop, LVS); + return prop_set_property(_properties, lv, prop, LVS | LVSINFO | LVSSTATUS | LVSINFOSTATUS); } int vg_set_property(struct volume_group *vg,