diff --git a/tools/python/xen/util/blkif.py b/tools/python/xen/util/blkif.py index dd4f287004..c9a9dc9e6a 100644 --- a/tools/python/xen/util/blkif.py +++ b/tools/python/xen/util/blkif.py @@ -67,6 +67,8 @@ def blkdev_uname_to_file(uname): (typ, fn) = uname.split(":") if typ == "phy" and not fn.startswith("/"): fn = "/dev/%s" %(fn,) + if typ == "tap": + (typ, fn) = fn.split(":", 1) return fn def mount_mode(name):