summaryrefslogtreecommitdiffstats
path: root/tools/vgreduce.c
diff options
context:
space:
mode:
authorPetr Rockai <prockai@redhat.com>2012-02-15 12:30:46 +0000
committerPetr Rockai <prockai@redhat.com>2012-02-15 12:30:46 +0000
commit616c6208aadfb25390dab19b8c8dfd9e9396188d (patch)
treefd868d7f0c2eeb046120963c7ef7ec105d8f6d02 /tools/vgreduce.c
parent3b4be8a99dc1175e75c39dcc3c3ff8bbb9692fcf (diff)
downloadlvm2-616c6208aadfb25390dab19b8c8dfd9e9396188d.tar.gz
lvm2-616c6208aadfb25390dab19b8c8dfd9e9396188d.tar.xz
lvm2-616c6208aadfb25390dab19b8c8dfd9e9396188d.zip
Turn a warning to an error in vgreduce --removemissing, since we exit with a
failure status there.
Diffstat (limited to 'tools/vgreduce.c')
-rw-r--r--tools/vgreduce.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/vgreduce.c b/tools/vgreduce.c
index eb11e6b7..3adafb2a 100644
--- a/tools/vgreduce.c
+++ b/tools/vgreduce.c
@@ -60,8 +60,8 @@ static int _consolidate_vg(struct cmd_context *cmd, struct volume_group *vg)
if (!r) {
cmd->handles_missing_pvs = 1;
- log_warn("WARNING: There are still partial LVs in VG %s.", vg->name);
- log_warn("To remove them unconditionally use: vgreduce --removemissing --force.");
+ log_error("There are still partial LVs in VG %s.", vg->name);
+ log_error("To remove them unconditionally use: vgreduce --removemissing --force.");
log_warn("Proceeding to remove empty missing PVs.");
}