From: Vratislav Podzimek vpodzime@redhat.com
This really only takes care about passing the type down to libblockdev and thus lvcreate. We need to a lot more to actually fully support various types of LVs. --- blivet/devices/lvm.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/blivet/devices/lvm.py b/blivet/devices/lvm.py index 159e3ef..de40fd6 100644 --- a/blivet/devices/lvm.py +++ b/blivet/devices/lvm.py @@ -841,7 +841,9 @@ def _create(self): # TODO: specify sizes together with PVs once LVM and libblockdev support it pvs = [spec.pv.path for spec in self._pv_specs] pvs = pvs or None - blockdev.lvm.lvcreate(self.vg.name, self._name, self.size, pv_list=pvs) + + blockdev.lvm.lvcreate(self.vg.name, self._name, self.size, + type=self.seg_type, pv_list=pvs) else: mode = blockdev.lvm.cache_get_mode_from_str(self.cache.mode) # prepare the list of fast PV devices
anaconda-patches@lists.fedorahosted.org