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

thin: no pool can be used for external origins

Cache pool can't be external origin either.
For simplicity use vg from passed LV.
This commit is contained in:
Zdenek Kabelac 2014-09-22 14:09:55 +02:00
parent a84d0d0c7b
commit cd3345a5b0
2 changed files with 3 additions and 2 deletions

View File

@ -1,5 +1,6 @@
Version 2.02.112 -
=====================================
Pools cannot be used as external origin.
Use lv_update_and_reload() for snapshot reload.
Don't print message in adjusted_mirror_region_size() in activation.
Improve lv_update_and_reload() to find out proper lock holding LV.

View File

@ -2511,7 +2511,7 @@ static int _lvconvert_thin(struct cmd_context *cmd,
struct lvconvert_params *lp)
{
struct logical_volume *torigin_lv, *pool_lv = lp->pool_data_lv;
struct volume_group *vg = pool_lv->vg;
struct volume_group *vg = lv->vg;
struct lvcreate_params lvc = {
.activate = CHANGE_AEY,
.alloc = ALLOC_INHERIT,
@ -2533,7 +2533,7 @@ static int _lvconvert_thin(struct cmd_context *cmd,
return 0;
}
if (lv_is_thin_pool(lv)) {
if (lv_is_pool(lv)) {
log_error("Can't use pool %s as external origin.",
display_lvname(lv));
return 0;