Mailing List Archive

[xen-4.0-testing] blktap2: a little fix to xen-hotplug-cleanup
# HG changeset patch
# User Keir Fraser <keir.fraser@citrix.com>
# Date 1275891842 -3600
# Node ID 877f0211cf719f452cef7173716f40265ea22e90
# Parent 2c3495f3ca84891752886b9ae7c03c42cd97efe5
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
---
tools/hotplug/Linux/xen-hotplug-cleanup | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)

diff -r 2c3495f3ca84 -r 877f0211cf71 tools/hotplug/Linux/xen-hotplug-cleanup
--- a/tools/hotplug/Linux/xen-hotplug-cleanup Fri Jun 04 10:50:55 2010 +0100
+++ b/tools/hotplug/Linux/xen-hotplug-cleanup Mon Jun 07 07:24:02 2010 +0100
@@ -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

_______________________________________________
Xen-changelog mailing list
Xen-changelog@lists.xensource.com
http://lists.xensource.com/xen-changelog