33 lines
1.0 KiB
Diff
33 lines
1.0 KiB
Diff
# HG changeset patch
|
|
# User Keir Fraser <keir.fraser@citrix.com>
|
|
# Date 1201185686 0
|
|
# Node ID 31adb5c972d03e45cb746cd2305126ea2571282f
|
|
# Parent 6269a3ce7b830f6903a61e1116331590b47f7e99
|
|
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>
|
|
|
|
diff -r 6269a3ce7b83 -r 31adb5c972d0 tools/examples/blktap
|
|
--- a/tools/examples/blktap Thu Jan 24 14:40:35 2008 +0000
|
|
+++ b/tools/examples/blktap Thu Jan 24 14:41:26 2008 +0000
|
|
@@ -71,9 +71,9 @@ fi
|
|
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
|
|
|