summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--WHATS_NEW1
-rw-r--r--tools/pvremove.c4
2 files changed, 3 insertions, 2 deletions
diff --git a/WHATS_NEW b/WHATS_NEW
index d93b21c1..c6f5f1eb 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 fe7335bb..68a59460 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 ? */