ia64/xen-unstable

changeset 16877:31adb5c972d0

block scripts: use fatal() in xen-hotplug-common.sh if the file does not exist.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
author Keir Fraser <keir.fraser@citrix.com>
date Thu Jan 24 14:41:26 2008 +0000 (2008-01-24)
parents 6269a3ce7b83
children 7a2824f99a28
files tools/examples/blktap
line diff
     1.1 --- a/tools/examples/blktap	Thu Jan 24 14:40:35 2008 +0000
     1.2 +++ b/tools/examples/blktap	Thu Jan 24 14:41:26 2008 +0000
     1.3 @@ -71,9 +71,9 @@ then
     1.4  fi
     1.5  # some versions of readlink cannot be passed a regular file
     1.6  if [ -L "$p" ]; then
     1.7 -    file=$(readlink -f "$p") || ebusy "$p link does not exist."
     1.8 +    file=$(readlink -f "$p") || fatal "$p link does not exist."
     1.9  else
    1.10 -    [ -f "$p" ] || { ebusy "$p file does not exist."; }
    1.11 +    [ -f "$p" ] || { fatal "$p file does not exist."; }
    1.12      file="$p"
    1.13  fi
    1.14  
    1.15 @@ -85,7 +85,7 @@ fi
    1.16  
    1.17  if [ "$command" = 'add' ]
    1.18  then
    1.19 -    [ -e "$file" ] || { ebusy $file does not exist; }
    1.20 +    [ -e "$file" ] || { fatal $file does not exist; }
    1.21      success
    1.22  fi
    1.23