From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marius Vollmer Date: Thu, 29 Jan 2015 22:24:28 +0200 Subject: "lv_attr" disappeared from lvm_lv_get_property? In-Reply-To: <20150129200344.GO23957@agk-dp.fab.redhat.com> References: <87r3udicy7.fsf@red.mvo.lan>, <20150129200344.GO23957@agk-dp.fab.redhat.com> Message-ID: <87pp9xibcz.fsf@red.mvo.lan> List-Id: To: lvm-devel@redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Alasdair G Kergon writes: > On Thu, Jan 29, 2015 at 09:50:08PM +0200, Marius Vollmer wrote: >> at one moment lvm_lv_get_property returned a valid and useful "lv_attr" >> property, and then suddenly it returns values with "is_valid == 0". > > The way some of the properties are gathered got changed. > > Sounds like we forgot to update the library code to use the new method... I found this: /* backward compatible internal API for lvm2api, TODO improve it */ char *lv_attr_dup(struct dm_pool *mem, const struct logical_volume *lv) Guys, really. Write some tests.