diff -r 93410e5e4ad8 tools/python/xen/util/blkif.py --- a/tools/python/xen/util/blkif.py Sat May 22 06:36:41 2010 +0100 +++ b/tools/python/xen/util/blkif.py Sun May 30 16:17:54 2010 +0400 @@ -87,7 +87,7 @@ fn = "/dev/%s" %(fn,) if typ in ("tap", "tap2"): - (taptype, fn) = fn.split(":", 1) + (taptype, fn) = fn.split(":", 2)[1:3] return (fn, taptype) def blkdev_uname_to_file(uname): diff -r 93410e5e4ad8 tools/python/xen/xend/XendBootloader.py --- a/tools/python/xen/xend/XendBootloader.py Sat May 22 06:36:41 2010 +0100 +++ b/tools/python/xen/xend/XendBootloader.py Sun May 30 16:17:54 2010 +0400 @@ -13,6 +13,7 @@ # import os, select, errno, stat, signal, tty +import time import random import shlex from xen.xend import sxp @@ -38,10 +39,16 @@ msg = "Bootloader isn't executable" log.error(msg) raise VmError(msg) - if not os.access(disk, os.R_OK): - msg = "Disk isn't accessible" - log.error(msg) - raise VmError(msg) + attempt = 0 + while True: + if not os.access(disk, os.R_OK) and attempt > 3: + msg = "Disk isn't accessible" + log.error(msg) + raise VmError(msg) + else: + break + time.sleep(1) + attempt = attempt + 1 if os.uname()[0] == "NetBSD" and disk.startswith('/dev/'): disk = disk.replace("/dev/", "/dev/r") diff -r 93410e5e4ad8 tools/python/xen/xend/XendDomainInfo.py --- a/tools/python/xen/xend/XendDomainInfo.py Sat May 22 06:36:41 2010 +0100 +++ b/tools/python/xen/xend/XendDomainInfo.py Sun May 30 16:17:54 2010 +0400 @@ -3299,7 +3299,7 @@ log.info("Unmounting %s from %s." % (fn, BOOTLOADER_LOOPBACK_DEVICE)) - dom0.destroyDevice('tap', BOOTLOADER_LOOPBACK_DEVICE) + dom0.destroyDevice(devtype, BOOTLOADER_LOOPBACK_DEVICE if blcfg is None: msg = "Had a bootloader specified, but can't find disk"