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

thin: missed check for thin_pool in last update

This commit is contained in:
Zdenek Kabelac 2013-10-16 12:47:30 +02:00
parent 73971e1e7b
commit dd3a2f13f1

View File

@ -2327,7 +2327,7 @@ static int _lvconvert_thinpool(struct cmd_context *cmd,
return 0;
}
if (pool_is_active(pool_lv)) {
if (lv_is_thin_pool(pool_lv) && pool_is_active(pool_lv)) {
/* If any thin volume is also active - abort here */
log_error("Cannot convert pool %s/%s with active thin volumes.",
pool_lv->vg->name, pool_lv->name);