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 771] block-nbd script does not receive nbd arguments.

To: xen-bugs@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-bugs] [Bug 771] block-nbd script does not receive nbd arguments.
From: bugzilla-daemon@xxxxxxxxxxxxxxxxxxx
Date: Tue, 16 Jan 2007 01:24:42 -0800
Delivery-date: Tue, 16 Jan 2007 01:25:18 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <bug-771-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/cgi-bin/mailman/listinfo/xen-bugs>, <mailto:xen-bugs-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/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=771





------- Comment #1 from andrzej.dzik@xxxxxxxxxxxxxxxxxxx  2007-01-16 01:24 
-------
Try this patch tested on debian testing

--- block-nbd.org   2006-11-13 15:13:37.000000000 +0100
+++ block-nbd  2007-01-16 10:09:25.000000000 +0100
@@ -14,6 +14,7 @@
   add)
     for dev in /dev/nbd*; do
       if nbd-client $2 $3 $dev; then
+       xenstore_write "$XENBUS_PATH/node" "$dev"
         write_dev $dev
         exit 0
       fi
@@ -21,7 +22,8 @@
     exit 1
     ;;
   remove)
-    nbd-client -d $2
+    dev=$(xenstore_read "$XENBUS_PATH/node")
+    nbd-client -d $dev
     exit 0
     ;;
 esac

--- block.org       2006-11-13 15:13:37.000000000 +0100
+++ block      2007-01-11 22:55:10.000000000 +0100
@@ -404,4 +404,4 @@

 # If we've reached here, $t is neither phy nor file, so fire a helper script.
 [ -x /etc/xen/scripts/block-"$t" ] && \
-  /etc/xen/scripts/block-"$t" "$command" $node
+  /etc/xen/scripts/block-"$t" "$command" $p


-- 
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>
  • [Xen-bugs] [Bug 771] block-nbd script does not receive nbd arguments., bugzilla-daemon <=