mrc0mmand / rpms / lvm2

Forked from rpms/lvm2 2 years ago
Clone

Blame SOURCES/lvm2-2_02_104-improve-discards-when-pool-active-error.patch

191583
 WHATS_NEW        | 1 +
191583
 tools/lvchange.c | 3 +--
191583
 2 files changed, 2 insertions(+), 2 deletions(-)
191583
191583
diff --git a/WHATS_NEW b/WHATS_NEW
191583
index d8d6e7c..e0cb795 100644
191583
--- a/WHATS_NEW
191583
+++ b/WHATS_NEW
191583
@@ -1,5 +1,6 @@
191583
 Version 2.02.104 - 
191583
 ===================================
191583
+  Improve message when unable to change discards setting on active thin pool.
191583
   Fix lvconvert when converting to a thin pool and thin LV at once.
191583
 
191583
 Version 2.02.103 - 4th October 2013
191583
diff --git a/tools/lvchange.c b/tools/lvchange.c
191583
index 1d4f0a5..6ae9720 100644
191583
--- a/tools/lvchange.c
191583
+++ b/tools/lvchange.c
191583
@@ -120,8 +120,7 @@ static int lvchange_pool_update(struct cmd_context *cmd,
191583
 			if (((discards == THIN_DISCARDS_IGNORE) ||
191583
 			     (first_seg(lv)->discards == THIN_DISCARDS_IGNORE)) &&
191583
 			    pool_is_active(lv))
191583
-				log_error("Cannot change discards state for active "
191583
-					  "pool volume \"%s\".", lv->name);
191583
+				log_error("Cannot change support for discards while pool volume \"%s\" is active.", lv->name);
191583
 			else {
191583
 				first_seg(lv)->discards = discards;
191583
 				update++;