1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-03-10 16:58:47 +03:00
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-30 23:58:49 +01:00
2014-10-24 16:39:30 +02:00
2014-10-30 23:58:49 +01:00
2014-11-13 17:49:42 +01:00
2015-01-14 14:52:05 +01:00
2014-10-30 23:58:49 +01:00
2014-11-18 16:50:49 +01:00
2014-10-30 23:58:49 +01:00
2014-11-10 22:05:49 +01:00
2014-11-18 16:50:49 +01:00
2014-11-10 22:05:48 +01:00
2014-10-30 23:58:49 +01:00
2014-10-30 23:58:49 +01:00
2014-03-12 19:12:34 +01:00
2014-11-13 17:49:42 +01:00