direct-io.hg

changeset 7290:3a341763d8b8

Fix completely broken xenstore_read function.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
author emellor@ewan
date Mon Oct 10 18:58:46 2005 +0100 (2005-10-10)
parents 5134f3c512c8
children 7a48bfd1aba6
files tools/examples/xen-hotplug-common.sh
line diff
     1.1 --- a/tools/examples/xen-hotplug-common.sh	Mon Oct 10 18:16:03 2005 +0100
     1.2 +++ b/tools/examples/xen-hotplug-common.sh	Mon Oct 10 18:58:46 2005 +0100
     1.3 @@ -9,10 +9,10 @@ log() {
     1.4  }
     1.5  
     1.6  xenstore_read() {
     1.7 -  local v=$(xenstore-read "$XENBUS_PATH"/type || true)
     1.8 +  local v=$(xenstore-read "$@" || true)
     1.9    if [ "$v" == "" ]
    1.10    then
    1.11 -    log error "xenstore-read $XENBUS_PATH/type failed."
    1.12 +    log error "xenstore-read $@ failed."
    1.13      exit 1
    1.14    fi
    1.15    echo "$v"