From: Benjamin Gilbert Date: Thu, 29 May 2014 04:09:17 +0000 (-0400) Subject: lvm: Avoid lvm_lv_get_attr() X-Git-Tag: collectd-5.5.0~232^2~2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=2f0509e2677ed1d4d9aff150b69d5a3a5910e01f;p=collectd.git lvm: Avoid lvm_lv_get_attr() It is only available in liblvm2app >= 2.02.99, which is not in Debian Wheezy. --- diff --git a/src/lvm.c b/src/lvm.c index cbf244b3..107766c3 100644 --- a/src/lvm.c +++ b/src/lvm.c @@ -123,7 +123,7 @@ static void vg_read(vg_t vg, char const *vg_name) return; dm_list_iterate_items(lvl, lvs) { name = lvm_lv_get_name(lvl->lv); - attrs = lvm_lv_get_attr(lvl->lv); + attrs = get_lv_property_string(lvl->lv, "lv_attr"); size = lvm_lv_get_size(lvl->lv); if (name == NULL || attrs == NULL || size == NO_VALUE) continue;