diff --git a/liblvm/lvm_lv.c b/liblvm/lvm_lv.c index 7fc239231..46399e40f 100644 --- a/liblvm/lvm_lv.c +++ b/liblvm/lvm_lv.c @@ -443,7 +443,7 @@ lv_create_params_t lvm_lv_params_create_thin_pool(vg_t vg, if (lvcp) { lvcp->vg = vg; - lvcp->lvp.discards = discard; + lvcp->lvp.discards = (thin_discards_t) discard; if (chunk_size) lvcp->lvp.chunk_size = chunk_size;