From 51a31dbd79e6fd9dc289250f875badd9afbff428 Mon Sep 17 00:00:00 2001 From: Heinz Mauelshagen Date: Wed, 12 Apr 2017 19:34:18 +0200 Subject: [PATCH] lvconvert: better message on --regionsize Enhance message on "lvconvert --regionsize size RaidLV". in case the regionsize does not change and return error. --- lib/metadata/raid_manip.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/metadata/raid_manip.c b/lib/metadata/raid_manip.c index b58ba2da4..d16d49f18 100644 --- a/lib/metadata/raid_manip.c +++ b/lib/metadata/raid_manip.c @@ -5792,9 +5792,10 @@ static int _region_size_change_requested(struct logical_volume *lv, int yes, con return_0; if (region_size == seg->region_size) { - log_print_unless_silent("Region size wouldn't change on %s LV %s.", - lvseg_name(seg), display_lvname(lv)); - return 1; + log_error("Region size is already %s on %s LV %s.", + display_size(lv->vg->cmd, region_size), + lvseg_name(seg), display_lvname(lv)); + return 0; } if (!_check_region_size_constraints(lv, seg->segtype, region_size, seg->stripe_size))