]> xenbits.xensource.com Git - xen.git/commitdiff
xend: Allow drbd disks.
authorKeir Fraser <keir.fraser@citrix.com>
Tue, 31 Mar 2009 10:26:10 +0000 (11:26 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Tue, 31 Mar 2009 10:26:10 +0000 (11:26 +0100)
From: Ben Timby <btimby@gmail.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
tools/python/xen/util/blkif.py

index 29b23fb7dd1fce0cb18831f7b1fdff78b8ce3979..6091afe5acbc50ae048ea634774b464f1fe1a44b 100644 (file)
@@ -75,7 +75,7 @@ def _parse_uname(uname):
     fn = taptype = None
     if uname.find(":") != -1:
         (typ, fn) = uname.split(":", 1)
-        if typ == "phy" and not fn.startswith("/"):
+        if typ in ("phy", "drbd") and not fn.startswith("/"):
             fn = "/dev/%s" %(fn,)
         if typ == "tap":
             (taptype, fn) = fn.split(":", 1)