Skip to contentSkip to conversation

master - lvchange: improve discards when pool active error

PATCH Alasdair Kergon 1 participant 1 message Oct 7, 2013

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=4806f38d703c2d7cd01e0adc49505ccb7d010a17
Commit:        4806f38d703c2d7cd01e0adc49505ccb7d010a17
Parent:        761b5245193be548698495f2b2d2c089a5a72975
Author:        Alasdair G Kergon <[email protected]>
AuthorDate:    Mon Oct 7 23:50:09 2013 +0100
Committer:     Alasdair G Kergon <[email protected]>
CommitterDate: Mon Oct 7 23:50:09 2013 +0100

lvchange: improve discards when pool active error

Existing message deemed misleading:
Cannot change discards state for active pool volume

https://bugzilla.redhat.com/show_bug.cgi?id=994315

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