mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
Now users will see the following error: [root@bebop ~]# xm create -c 128 Using config file "/etc/xen/128". Error: Device 51713 (tap) could not be connected. /tmp/128.img does not exist Signed-off-by: Ryan Harper <ryanh@us.ibm.com>
30 lines
546 B
Bash
30 lines
546 B
Bash
#!/bin/sh
|
|
|
|
# Copyright (c) 2005, XenSource Ltd.
|
|
|
|
dir=$(dirname "$0")
|
|
. "$dir/xen-hotplug-common.sh"
|
|
. "$dir/block-common.sh"
|
|
|
|
findCommand "$@"
|
|
|
|
t=$(xenstore_read_default "$XENBUS_PATH/type" 'MISSING')
|
|
if [ -n "$t" ]
|
|
then
|
|
p=$(xenstore_read "$XENBUS_PATH/params")
|
|
# if we have a ':', chew from head including :
|
|
if echo $p | grep -q \:
|
|
then
|
|
p=${p#*:}
|
|
fi
|
|
fi
|
|
file=$(readlink -f "$p") || ebusy "$p does not exist."
|
|
|
|
if [ "$command" = 'add' ]
|
|
then
|
|
[ -e "$file" ] || { ebusy $file does not exist; }
|
|
success
|
|
fi
|
|
|
|
exit 0
|