[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-bugs] [Bug 1438] Cannot use pygrub with drbd blcok device as xvda.



http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=1438





------- Comment #2 from zentavr@xxxxxxxxxx  2009-09-24 04:18 -------
Some another diff, that expects
disk = [ "drbd:resname,xvda,w" ]
=============================================
diff -rupN util/blkif.py util.new/blkif.py
--- util/blkif.py       2009-06-12 19:05:57.000000000 +0300
+++ util.new/blkif.py   2009-09-24 14:01:50.000000000 +0300
@@ -72,6 +72,8 @@ def blkdev_uname_to_file(uname):
         (typ, fn) = uname.split(":", 1)
         if typ == "phy" and not fn.startswith("/"):
             fn = "/dev/%s" %(fn,)
+        if typ == "drbd" and not fn.startswith("/"):
+           fn = string.strip(os.popen('drbdadm sh-dev ' + "%s"
%(fn,)).readline(), " \n")
         if typ == "tap":
             (typ, fn) = fn.split(":", 1)
     return fn


-- 
Configure bugmail: 
http://bugzilla.xensource.com/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

_______________________________________________
Xen-bugs mailing list
Xen-bugs@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-bugs


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.