[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-bugs] [Bug 771] block-nbd script does not receive nbd arguments.
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
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |