From 67e6c7e73d1bde93b8058276358e06ae61205d16 Mon Sep 17 00:00:00 2001 From: Alasdair Kergon Date: Wed, 13 Dec 2006 18:40:23 +0000 Subject: [PATCH] Add missing pvremove error message when device doesn't exist. --- WHATS_NEW | 1 + tools/pvremove.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/WHATS_NEW b/WHATS_NEW index d93b21c11..c6f5f1eb1 100644 --- a/WHATS_NEW +++ b/WHATS_NEW @@ -1,5 +1,6 @@ Version 2.02.17 - =================================== + Add missing pvremove error message when device doesn't exist. When lvconvert allocates a mirror log, respect parallel area constraints. Use loop to iterate through the now-ordered policy list in _allocate(). Check for failure to allocate just the mirror log. diff --git a/tools/pvremove.c b/tools/pvremove.c index fe7335bbd..68a594601 100644 --- a/tools/pvremove.c +++ b/tools/pvremove.c @@ -38,8 +38,8 @@ static int pvremove_check(struct cmd_context *cmd, const char *name) if (!(pv = pv_read(cmd, name, NULL, NULL, 1))) { if (arg_count(cmd, force_ARG)) return 1; - else - return 0; + log_error("Physical Volume %s not found", name); + return 0; } /* orphan ? */