Shahar Havivi has uploaded a new change for review.
Change subject: v2v: support for block devices ......................................................................
v2v: support for block devices
extended support for block devices for KVM and VMWare. currently we do support block devices that exported as file in libvirt: <disk type='file' device='disk'> <source file='...'/> ...
Added support for type block: <disk type='block' device='disk'> <source dev='/dev/mapper/...'/> ...
Bug-Url: https://bugzilla.redhat.com/1378340 Change-Id: I5f7a85715764efded7b296e858b130a05fe10f2a Signed-off-by: Shahar Havivi shaharh@redhat.com --- M lib/vdsm/v2v.py 1 file changed, 6 insertions(+), 0 deletions(-)
git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/72/64272/1
diff --git a/lib/vdsm/v2v.py b/lib/vdsm/v2v.py index 4752477..ceb2b2b 100644 --- a/lib/vdsm/v2v.py +++ b/lib/vdsm/v2v.py @@ -1066,6 +1066,7 @@ def _add_disks(root, params): params['disks'] = [] disks = root.findall('.//disk[@type="file"]') + disks = disks + root.findall('.//disk[@type="block"]') for disk in disks: d = {} device = disk.get('device') @@ -1077,6 +1078,11 @@ source = disk.find('./source/[@file]') if source is not None: d['alias'] = source.get('file') + else: + source = disk.find('./source/[@dev]') + if source is not None: + d['alias'] = source.get('dev') + driver = disk.find('./driver/[@type]') if driver is not None: try: