WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-bugs

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

To: xen-bugs@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-bugs] [Bug 1438] Cannot use pygrub with drbd blcok device as xvda.
From: bugzilla-daemon@xxxxxxxxxxxxxxxxxxx
Date: Thu, 24 Sep 2009 04:18:43 -0700
Delivery-date: Thu, 24 Sep 2009 04:31:07 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <bug-1438-3@xxxxxxxxxxxxxxxxxxxxxxxxxxx/bugzilla/>
List-help: <mailto:xen-bugs-request@lists.xensource.com?subject=help>
List-id: Xen Bugzilla <xen-bugs.lists.xensource.com>
List-post: <mailto:xen-bugs@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-bugs>, <mailto:xen-bugs-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-bugs>, <mailto:xen-bugs-request@lists.xensource.com?subject=unsubscribe>
Reply-to: bugs@xxxxxxxxxxxxxxxxxx
Sender: xen-bugs-bounces@xxxxxxxxxxxxxxxxxxx
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

<Prev in Thread] Current Thread [Next in Thread>