direct-io.hg

changeset 12173:07d3c36df515

[XEND] Fix pygrub when run server-side on a domain with blktap disks.

Equivalent fix to xen-unstable 11706:bf0deb09facd847db87ab59ed377db6eb0f5a3ad.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
author Ewan Mellor <ewan@xensource.com>
date Sat Oct 28 17:45:43 2006 +0100 (2006-10-28)
parents 21406b5bc520
children f9446aa6c786
files tools/python/xen/xend/XendDomainInfo.py
line diff
     1.1 --- a/tools/python/xen/xend/XendDomainInfo.py	Thu Oct 05 14:53:29 2006 +0100
     1.2 +++ b/tools/python/xen/xend/XendDomainInfo.py	Sat Oct 28 17:45:43 2006 +0100
     1.3 @@ -1440,7 +1440,7 @@ class XendDomainInfo:
     1.4          blcfg = None
     1.5          # FIXME: this assumes that we want to use the first disk device
     1.6          for (n, c) in self.info.all_devices_sxpr():
     1.7 -            if not n or not c or n != "vbd":
     1.8 +            if not n or not c or not(n in ["vbd", "tap"]):
     1.9                  continue
    1.10              disk = sxp.child_value(c, "uname")
    1.11              if disk is None: