projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c7d196d
)
Returning lvm_errno on error
author
Chad Malfait
<cmalfait@cisco.com>
Sun, 7 Apr 2013 02:34:09 +0000
(20:34 -0600)
committer
Chad Malfait
<cmalfait@cisco.com>
Sun, 7 Apr 2013 02:34:09 +0000
(20:34 -0600)
src/volume.c
patch
|
blob
|
history
diff --git
a/src/volume.c
b/src/volume.c
index
3cb6d28
..
b5424aa
100644
(file)
--- a/
src/volume.c
+++ b/
src/volume.c
@@
-45,20
+45,19
@@
static int volume_read(void)
{
lvm_t lvm;
vg_t vg;
- int status = 0;
struct dm_list *vg_names;
struct lvm_str_list *name_list;
lvm = lvm_init(NULL);
if (!lvm) {
- status = lvm_errno(lvm);
ERROR("volume plugin: lvm_init failed: %s", lvm_errmsg(lvm));
+ return (lvm_errno(lvm));
}
vg_names = lvm_list_vg_names(lvm);
if (!vg_names) {
- status = lvm_errno(lvm);
ERROR("volume plugin lvm_list_vg_name failed %s", lvm_errmsg(lvm));
+ return (lvm_errno(lvm));
}
dm_list_iterate_items(name_list, vg_names) {