From 4bfab20a41d298002973eb86a45a49112f41383a Mon Sep 17 00:00:00 2001 From: Alasdair Kergon Date: Wed, 14 Jun 2006 20:27:15 +0000 Subject: [PATCH] Fix return code if VG specified on command line is not found. --- WHATS_NEW | 1 + tools/toollib.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/WHATS_NEW b/WHATS_NEW index b409a0801..62395b6f0 100644 --- a/WHATS_NEW +++ b/WHATS_NEW @@ -1,5 +1,6 @@ Version 2.02.07 - ================================= + Fix return code if VG specified on command line is not found. Fix PV tools to include orphaned PVs in default output again. Fixed unaligned access when using clvm. Fix an extra dev_close in a label_read error path. diff --git a/tools/toollib.c b/tools/toollib.c index 4efe7d3cf..a3ae26c84 100644 --- a/tools/toollib.c +++ b/tools/toollib.c @@ -413,7 +413,7 @@ static int _process_one_vg(struct cmd_context *cmd, const char *vg_name, if (!(vg = vg_read(cmd, vg_name, vgid, &consistent))) { log_error("Volume group \"%s\" not found", vg_name); unlock_vg(cmd, vg_name); - return ret_max; + return ECMD_FAILED; } if (!list_empty(tags)) {