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:
parent
761b524519
commit
4806f38d70
@ -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
|
||||
===================================
|
||||
|
@ -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++;
|
||||
|
Loading…
Reference in New Issue
Block a user