[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] Remus: Fixup for tap:tapdisk syntax in remus uname



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1257795676 0
# Node ID e084ee729798877be7966962606a6b50a52238be
# Parent  1bc8ad17d29615dce0c155a7a5cbd8943526ad60
Remus: Fixup for tap:tapdisk syntax in remus uname

Signed-off-by: Brendan Cully <brendan@xxxxxxxxx>
---
 tools/python/xen/xend/server/BlktapController.py |    2 ++
 1 files changed, 2 insertions(+)

diff -r 1bc8ad17d296 -r e084ee729798 
tools/python/xen/xend/server/BlktapController.py
--- a/tools/python/xen/xend/server/BlktapController.py  Mon Nov 09 19:40:48 
2009 +0000
+++ b/tools/python/xen/xend/server/BlktapController.py  Mon Nov 09 19:41:16 
2009 +0000
@@ -172,6 +172,8 @@ class Blktap2Controller(BlktapController
         uname = config.get('uname', '')
         try:
             (typ, subtyp, params, file) = string.split(uname, ':', 3)
+            if subtyp not in ('tapdisk', 'ioemu'):
+                raise ValueError('invalid subtype')
         except:
             (typ, params, file) = string.split(uname, ':', 2)
             subtyp = 'tapdisk'

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.