aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2010-06-07 07:24:02 +0100
committerKeir Fraser <keir.fraser@citrix.com>2010-06-07 07:24:02 +0100
commit2223a8c9fe2a028e2e4ba3e715d2cbbe2c947580 (patch)
tree1ace7083cf6e5346c872949bdcb557ee9d49c1fc
parentaa1461c9f1fa0770dd7fbbc378224fe2939da302 (diff)
downloadxen-2223a8c9fe2a028e2e4ba3e715d2cbbe2c947580.tar.gz
xen-2223a8c9fe2a028e2e4ba3e715d2cbbe2c947580.tar.bz2
xen-2223a8c9fe2a028e2e4ba3e715d2cbbe2c947580.zip
blktap2: a little fix to xen-hotplug-cleanup
Signed-off-by: James (Song Wei) <jsong@novell.com> xen-unstable changeset: 21129:bf74d9c31674 xen-unstable date: Mon Apr 12 07:23:21 2010 +0100
-rw-r--r--tools/hotplug/Linux/xen-hotplug-cleanup2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/hotplug/Linux/xen-hotplug-cleanup b/tools/hotplug/Linux/xen-hotplug-cleanup
index adaa9d6a23..2b5a2b4590 100644
--- a/tools/hotplug/Linux/xen-hotplug-cleanup
+++ b/tools/hotplug/Linux/xen-hotplug-cleanup
@@ -21,7 +21,7 @@ if [ "$vm" != "" ]; then
# if the vm path does not exist and the device class is 'vbd' then we may have
# a tap2 device
- if [ $(xenstore-read "$vm_dev" 2>/dev/null) != "" ] \
+ if [ "$(xenstore-read "$vm_dev" 2>/dev/null)" != "" ] \
&& [ "${path_array[1]}" = "vbd" ]; then
vm_dev="$vm/device/tap2/${path_array[3]}"
fi