Skip to contentSkip to conversation

xm: Add "tap2" to attach blocktap disks to VM

PATCH New Masaki Kanno 1 participant 1 message Sep 3, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xm: Add "tap2" to attach blocktap disks to VM

Hi,

I detected a problem when using XenAPI. When I started a VM by using xm create command, blocktap disks were not attached to the VM. This patch solves the problem.

Best regards,
Kan

tools/python/xen/xm/xenapi_create.py +1 -1
diff -r afbeaea4ada1 tools/python/xen/xm/xenapi_create.py
@@ -594,7 +594,7 @@
                    if len(child) > 0 and child[0] == "device"]
                    
         vbds_sxp = map(lambda x: x[1], [device for device in devices
-                                        if device[1][0] in ("vbd", "tap")])
+                                        if device[1][0] in ("vbd", "tap", "tap2")])
 
         vifs_sxp = map(lambda x: x[1], [device for device in devices
                                         if device[1][0] == "vif"])

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel