WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] xm: explicitly differentiate between tap

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] xm: explicitly differentiate between tap and tap2 in config parsing.
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 11 May 2010 03:30:28 -0700
Delivery-date: Tue, 11 May 2010 03:31:39 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1273563076 -3600
# Node ID a915a11908e3ab970887a313279650bc1d50c539
# Parent  c7e9f1b99b2293172f8d5536aff47c9e7d852ab7
xm: explicitly differentiate between tap and tap2 in config parsing.

From: Jim Fehlig <jfehlig@xxxxxxxxxx>
Signed-off-by: Keir Fraser <Keir.Fraser@xxxxxxxxxxxxx>
---
 tools/python/xen/xm/create.py |    4 +++-
 tools/python/xen/xm/main.py   |    4 +++-
 2 files changed, 6 insertions(+), 2 deletions(-)

diff -r c7e9f1b99b22 -r a915a11908e3 tools/python/xen/xm/create.py
--- a/tools/python/xen/xm/create.py     Mon May 10 09:27:17 2010 +0100
+++ b/tools/python/xen/xm/create.py     Tue May 11 08:31:16 2010 +0100
@@ -787,8 +787,10 @@ def configure_disks(config_devs, vals):
     """Create the config for disks (virtual block devices).
     """
     for (uname, dev, mode, backend, protocol) in vals.disk:
-        if uname.startswith('tap:'):
+        if uname.startswith('tap2:'):
             cls = 'tap2'
+        elif uname.startswith('tap:'):
+            cls = 'tap'
         else:
             cls = 'vbd'
 
diff -r c7e9f1b99b22 -r a915a11908e3 tools/python/xen/xm/main.py
--- a/tools/python/xen/xm/main.py       Mon May 10 09:27:17 2010 +0100
+++ b/tools/python/xen/xm/main.py       Tue May 11 08:31:16 2010 +0100
@@ -2634,8 +2634,10 @@ def parse_block_configuration(args):
 def parse_block_configuration(args):
     dom = args[0]
 
-    if args[1].startswith('tap:'):
+    if args[1].startswith('tap2:'):
         cls = 'tap2'
+    elif args[1].startswith('tap:'):
+        cls = 'tap'
     else:
         cls = 'vbd'
 

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] xm: explicitly differentiate between tap and tap2 in config parsing., Xen patchbot-unstable <=