From 2f0509e2677ed1d4d9aff150b69d5a3a5910e01f Mon Sep 17 00:00:00 2001 From: Benjamin Gilbert Date: Thu, 29 May 2014 00:09:17 -0400 Subject: [PATCH] lvm: Avoid lvm_lv_get_attr() It is only available in liblvm2app >= 2.02.99, which is not in Debian Wheezy. --- src/lvm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.11.0