mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 18:21:39 +01:00
xend: Allow drbd disks.
From: Ben Timby <btimby@gmail.com> Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
This commit is contained in:
1 parent
14f5ee16c8
commit
ea3ee2e615
1 file changed
+1
-1
@@ -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)
|
||||
|
||||