aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2010-05-10 09:54:18 +0100
committerKeir Fraser <keir.fraser@citrix.com>2010-05-10 09:54:18 +0100
commit22cc6a8b612634955f8b9001c6ec00879d05390c (patch)
tree97b293ff1fa5888a3087990782775b450cca8662
parent85bef2cc8dec14b5e89b2e5bbaf31b0cd2281f18 (diff)
downloadxen-22cc6a8b612634955f8b9001c6ec00879d05390c.tar.gz
xen-22cc6a8b612634955f8b9001c6ec00879d05390c.tar.bz2
xen-22cc6a8b612634955f8b9001c6ec00879d05390c.zip
xend: support blktap2 in xend blkif utils
Support tap2 device type in xend blkif utils parse method. Signed-off-by: Jim Fehlig <jfehlig@novell.com> xen-unstable changeset: 21317:5ac6e33fa3a7 xen-unstable date: Fri May 07 09:27:40 2010 +0100
-rw-r--r--tools/python/xen/util/blkif.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/python/xen/util/blkif.py b/tools/python/xen/util/blkif.py
index c73a946a25..cbe76b613f 100644
--- a/tools/python/xen/util/blkif.py
+++ b/tools/python/xen/util/blkif.py
@@ -86,7 +86,7 @@ def _parse_uname(uname):
else:
fn = "/dev/%s" %(fn,)
- if typ == "tap":
+ if typ in ("tap", "tap2"):
(taptype, fn) = fn.split(":", 1)
return (fn, taptype)