1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

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
This commit is contained in:
Alasdair G Kergon 2013-10-07 23:50:09 +01:00
parent 761b524519
commit 4806f38d70
2 changed files with 2 additions and 2 deletions

View File

@ -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
===================================

View File

@ -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++;