mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-18 10:04:20 +03:00
thinpool: correct condition
Actually we do want to flush thin-pool message for particular LV first. Existing condition evaluated to noop.
This commit is contained in:
parent
262008f1ce
commit
bbac843268
@ -6707,7 +6707,7 @@ int lv_remove_single(struct cmd_context *cmd, struct logical_volume *lv,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Clear thin pool stacked messages */
|
/* Clear thin pool stacked messages */
|
||||||
if (pool_lv && !pool_has_message(first_seg(pool_lv), lv, 0) &&
|
if (pool_lv && pool_has_message(first_seg(pool_lv), lv, 0) &&
|
||||||
!update_pool_lv(pool_lv, 1)) {
|
!update_pool_lv(pool_lv, 1)) {
|
||||||
if (force < DONT_PROMPT_OVERRIDE) {
|
if (force < DONT_PROMPT_OVERRIDE) {
|
||||||
log_error("Failed to update pool %s.", display_lvname(pool_lv));
|
log_error("Failed to update pool %s.", display_lvname(pool_lv));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user