1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-18 10:04:20 +03:00
lvm2/lib/metadata
Peter Rajnoha 531cc58d89 lvm2app: fix lvm_lv_get_attr regression causing unknown values
This is a regression from v115 where some of the fields/properties
were converted to using the common "struct lvinfo" and
"struct lv_seg_status" so we don't need to issue info and status
ioctl several times per one reported line. Not all fields are
converted yet, but one that *is* converted is the lv_attr field
with the lv_attr_dup counterpart used in lvm_lv_get_attr lvm2app fn.

These changes were introduced with e34b004422f0d51263e0d34f4064556cfc9148f6
and later - this patch introduced the "info_ok" field in the
lv_with_info_and_seg_status structure which encapsulates the lvinfo
and lv_seg_status struct.

For the lv_attr_dup, the lv_attr_dup code  missed the
assignment for the "info_ok" flag which saves the result of the
lv_info_with_seg_status call. Hence such info was marked
as unusable - unknown and it was returned as such via lvm_lv_get_attr
lvm2app fn.
2015-01-30 09:53:34 +01:00
..
2014-10-26 18:37:13 +01:00
2015-01-14 14:52:05 +01:00
2014-11-04 15:28:00 +01:00
2013-12-12 13:28:19 +01:00
2013-12-12 13:28:19 +01:00
2015-01-28 13:45:18 +01:00
2013-06-17 09:34:56 +02:00
2015-01-14 14:52:05 +01:00
2014-11-26 09:29:25 +01:00
2014-11-11 14:13:00 +00:00