From 4c1f281b43175e69a73fcc59a9142fd374e8b70c Mon Sep 17 00:00:00 2001 From: Alasdair G Kergon Date: Fri, 22 Nov 2013 18:11:04 +0000 Subject: [PATCH] toollib: Avoid undefined ignore_vg parameter. Fix process_each_segment_in_pv to always set ret before calling ignore_vg(). --- WHATS_NEW | 1 + tools/toollib.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/WHATS_NEW b/WHATS_NEW index e47f0e550..647c81036 100644 --- a/WHATS_NEW +++ b/WHATS_NEW @@ -1,5 +1,6 @@ Version 2.02.105 - ===================================== + Fix undef value if skipped clustered VG ignored for toollib PV seg. (2.02.103) liblvm/python API Add ability to validate VG/LV names. liblvm/python API Add ability to create PV with arguments. liblvm/python API Fail VG reduce when insufficient metadata copies diff --git a/tools/toollib.c b/tools/toollib.c index b3bfd1d60..90a7cb84c 100644 --- a/tools/toollib.c +++ b/tools/toollib.c @@ -510,10 +510,10 @@ int process_each_segment_in_pv(struct cmd_context *cmd, vg_name = pv_vg_name(pv); vg = vg_read(cmd, vg_name, NULL, 0); - if (ignore_vg(vg, vg_name, 0, &ret)) { + if (ignore_vg(vg, vg_name, 0, &ret_max)) { release_vg(vg); stack; - return ret; + return ret_max; } /*