def _getLV(self, vgName, lvName): try: lv = self.lvmd[(vgName, lvName)] except KeyError: raise se.LogicalVolumeDoesNotExistError("%s/%s" % (vgName, lvName)) lv_md = deepcopy(lv) lv_attr = real_lvm.LV_ATTR(**lv_md['attr']) lv_md['attr'] = lv_attr return real_lvm.LV(**lv_md)
def make_lv(name=None, tags=()): return lvm.LV(tags=tags, uuid=None, name=name, vg_name=None, attr=None, size=None, seg_start_pe=None, devices=None, writeable=None, opened=None, active=None)