Use matching name as kernel target - useful when function like
_percent is using this for validation.
/* Create thin pool first if necessary */
if (lp->create_thin_pool) {
if (!seg_is_thin_pool(lp) &&
- !(lp->segtype = get_segtype_from_string(vg->cmd, "thin_pool")))
+ !(lp->segtype = get_segtype_from_string(vg->cmd, "thin-pool")))
return_0;
if (!(lv = _lv_create_an_lv(vg, lp, lp->pool)))
const char name[16];
uint32_t flags;
} reg_segtypes[] = {
- { &_thin_pool_ops, "thin_pool", SEG_THIN_POOL },
+ { &_thin_pool_ops, "thin-pool", SEG_THIN_POOL },
/* FIXME Maybe use SEG_THIN_VOLUME instead of SEG_VIRTUAL */
{ &_thin_ops, "thin", SEG_THIN_VOLUME | SEG_VIRTUAL }
};
}
} else {
/* No virtual size given, so no thin LV to create. */
- if (seg_is_thin_volume(lp) && !(lp->segtype = get_segtype_from_string(cmd, "thin_pool")))
+ if (seg_is_thin_volume(lp) && !(lp->segtype = get_segtype_from_string(cmd, "thin-pool")))
return_0;
lp->thin = 0;