ia64/xen-unstable

changeset 8076:895a9ca1b0a6

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@xensource.com>
author emellor@leeni.uk.xensource.com
date Sat Nov 26 23:59:09 2005 +0000 (2005-11-26)
parents b9181b1c576f
children cfcf9212a90b
files tools/examples/block-common.sh
line diff
     1.1 --- a/tools/examples/block-common.sh	Sat Nov 26 01:21:55 2005 +0000
     1.2 +++ b/tools/examples/block-common.sh	Sat Nov 26 23:59:09 2005 +0000
     1.3 @@ -34,8 +34,8 @@ XENBUS_PATH="${XENBUS_PATH:?}"
     1.4  
     1.5  ebusy()
     1.6  {
     1.7 -  xenstore_write "$XENBUS_PATH/hotplug-status" busy
     1.8 -  xenstore_write "$XENBUS_PATH/hotplug-error" "$*"
     1.9 +  xenstore_write "$XENBUS_PATH/hotplug-error" "$*" \
    1.10 +                 "$XENBUS_PATH/hotplug-status" busy
    1.11    log err "$@"
    1.12    exit 1
    1.13  }