libxl: return "tap" as backend type for PHYSTYPE_QCOW2
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>
Tue, 14 Dec 2010 19:28:25 +0000 (19:28 +0000)
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>
Tue, 14 Dec 2010 19:28:25 +0000 (19:28 +0000)
Return "tap" as backend type for PHYSTYPE_QCOW2.  This arranges that
qcow2 disks should work in xl.

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxl/libxl_device.c

index 7d1796b2e7189cf484ab4ac9fb6b9a83c2170318..2d430b7ffe916aeb8e96580a14b4eb13b0dafdad 100644 (file)
@@ -138,6 +138,7 @@ char *libxl__device_disk_backend_type_of_phystype(libxl_disk_phystype phystype)
 {
     switch (phystype) {
         case PHYSTYPE_QCOW: return "tap";
+        case PHYSTYPE_QCOW2: return "tap";
         case PHYSTYPE_VHD: return "tap";
         case PHYSTYPE_AIO: return "tap";
         /* let's pretend file is tap:aio */