projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
45805cf
)
lvm: Avoid lvm_lv_get_attr()
author
Benjamin Gilbert
<bgilbert@cs.cmu.edu>
Thu, 29 May 2014 04:09:17 +0000
(
00:09
-0400)
committer
Benjamin Gilbert
<bgilbert@cs.cmu.edu>
Thu, 29 May 2014 04:09:17 +0000
(
00:09
-0400)
It is only available in liblvm2app >= 2.02.99, which is not in Debian
Wheezy.
src/lvm.c
patch
|
blob
|
history
diff --git
a/src/lvm.c
b/src/lvm.c
index
cbf244b
..
107766c
100644
(file)
--- 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;