diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2008-01-24 14:41:26 +0000 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2008-01-24 14:41:26 +0000 |
commit | f33a7ba91c3ef9520856e9dc65b4943f81afb9f1 (patch) | |
tree | 4be053e2a00c2c9e8037aee57d1c20b8d386fd29 /tools/examples | |
parent | 27a60277e8efbfc73a38c3ebc4f117d746d77a3a (diff) | |
download | xen-f33a7ba91c3ef9520856e9dc65b4943f81afb9f1.tar.gz xen-f33a7ba91c3ef9520856e9dc65b4943f81afb9f1.tar.bz2 xen-f33a7ba91c3ef9520856e9dc65b4943f81afb9f1.zip |
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>
Diffstat (limited to 'tools/examples')
-rw-r--r-- | tools/examples/blktap | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/examples/blktap b/tools/examples/blktap index bd914d5858..7016e299d1 100644 --- a/tools/examples/blktap +++ b/tools/examples/blktap @@ -71,9 +71,9 @@ then fi # some versions of readlink cannot be passed a regular file if [ -L "$p" ]; then - file=$(readlink -f "$p") || ebusy "$p link does not exist." + file=$(readlink -f "$p") || fatal "$p link does not exist." else - [ -f "$p" ] || { ebusy "$p file does not exist."; } + [ -f "$p" ] || { fatal "$p file does not exist."; } file="$p" fi @@ -85,7 +85,7 @@ fi if [ "$command" = 'add' ] then - [ -e "$file" ] || { ebusy $file does not exist; } + [ -e "$file" ] || { fatal $file does not exist; } success fi |