mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
vdo: with created names use vpool
When user create vdo-pool - use different automatic name. So unlike with traditional LVs using lvol0, lvol1 use vpool0, vpool1... TODO: apply similar for thin-pool & cache-pool...
This commit is contained in:
parent
a8f84f7801
commit
4b7a57c9ed
@ -8125,8 +8125,8 @@ struct logical_volume *lv_create_single(struct volume_group *vg,
|
|||||||
/* The VDO segment needs VDO pool which is layer above created striped data LV */
|
/* The VDO segment needs VDO pool which is layer above created striped data LV */
|
||||||
if (!(lp->segtype = get_segtype_from_string(vg->cmd, SEG_TYPE_NAME_VDO_POOL)))
|
if (!(lp->segtype = get_segtype_from_string(vg->cmd, SEG_TYPE_NAME_VDO_POOL)))
|
||||||
return_NULL;
|
return_NULL;
|
||||||
|
/* Use vpool names for vdo-pool */
|
||||||
if (!(lv = _lv_create_an_lv(vg, lp, lp->pool_name)))
|
if (!(lv = _lv_create_an_lv(vg, lp, lp->pool_name ? : "vpool%d")))
|
||||||
return_NULL;
|
return_NULL;
|
||||||
} else {
|
} else {
|
||||||
log_error(INTERNAL_ERROR "Creation of pool for unsupported segment type %s.",
|
log_error(INTERNAL_ERROR "Creation of pool for unsupported segment type %s.",
|
||||||
|
Loading…
Reference in New Issue
Block a user