ia64/xen-unstable

changeset 19446:152257350930

xend: Allow drbd disks.

From: Ben Timby <btimby@gmail.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Tue Mar 31 11:26:10 2009 +0100 (2009-03-31)
parents 35fd5a1922bc
children 2d19139c1c9c
files tools/python/xen/util/blkif.py
line diff
     1.1 --- a/tools/python/xen/util/blkif.py	Tue Mar 31 11:24:13 2009 +0100
     1.2 +++ b/tools/python/xen/util/blkif.py	Tue Mar 31 11:26:10 2009 +0100
     1.3 @@ -75,7 +75,7 @@ def _parse_uname(uname):
     1.4      fn = taptype = None
     1.5      if uname.find(":") != -1:
     1.6          (typ, fn) = uname.split(":", 1)
     1.7 -        if typ == "phy" and not fn.startswith("/"):
     1.8 +        if typ in ("phy", "drbd") and not fn.startswith("/"):
     1.9              fn = "/dev/%s" %(fn,)
    1.10          if typ == "tap":
    1.11              (taptype, fn) = fn.split(":", 1)