ia64/xen-unstable
changeset 17646:5e1a0dc74a35
Xend: Fix blkif type check for tap devices.
Signed-off-by: Yosuke Iwamatsu <y-iwamatsu@ab.jp.nec.com>
Signed-off-by: Yosuke Iwamatsu <y-iwamatsu@ab.jp.nec.com>
author | Keir Fraser <keir.fraser@citrix.com> |
---|---|
date | Tue May 13 12:43:24 2008 +0100 (2008-05-13) |
parents | 1b7042d60351 |
children | 65eec0554f39 |
files | tools/python/xen/xend/server/blkif.py |
line diff
1.1 --- a/tools/python/xen/xend/server/blkif.py Tue May 13 10:40:49 2008 +0100 1.2 +++ b/tools/python/xen/xend/server/blkif.py Tue May 13 12:43:24 2008 +0100 1.3 @@ -56,9 +56,10 @@ class BlkifController(DevController): 1.4 else: 1.5 try: 1.6 (typ, params) = string.split(uname, ':', 1) 1.7 - if typ not in ('phy', 'file'): 1.8 + if typ not in ('phy', 'file', 'tap'): 1.9 raise VmError( 1.10 - 'Block device must have "phy" or "file" specified to type') 1.11 + 'Block device must have "phy", "file" or "tap" ' 1.12 + 'specified to type') 1.13 except ValueError: 1.14 raise VmError( 1.15 'Block device must have physical details specified')