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

[Xen-changelog] Write the error message and the hotplug-status=busy in the same transaction, to



# HG changeset patch
# User emellor@xxxxxxxxxxxxxxxxxxxxxx
# Node ID 895a9ca1b0a68c2bb15a2fbfa65453e493219d88
# Parent  b9181b1c576fb39bb4d3b088ac3378d77163b4cc
Write the error message and the hotplug-status=busy in the same transaction, to
ensure that the message is picked up.

Signed-off-by: Ewan Mellor <ewan@xxxxxxxxxxxxx>

diff -r b9181b1c576f -r 895a9ca1b0a6 tools/examples/block-common.sh
--- a/tools/examples/block-common.sh    Sat Nov 26 01:21:55 2005
+++ b/tools/examples/block-common.sh    Sat Nov 26 23:59:09 2005
@@ -34,8 +34,8 @@
 
 ebusy()
 {
-  xenstore_write "$XENBUS_PATH/hotplug-status" busy
-  xenstore_write "$XENBUS_PATH/hotplug-error" "$*"
+  xenstore_write "$XENBUS_PATH/hotplug-error" "$*" \
+                 "$XENBUS_PATH/hotplug-status" busy
   log err "$@"
   exit 1
 }

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


 


Rackspace

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