projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
560f4dc
)
blktap2: a little fix to xen-hotplug-cleanup
author
Keir Fraser
<keir.fraser@citrix.com>
Mon, 12 Apr 2010 06:23:21 +0000
(07:23 +0100)
committer
Keir Fraser
<keir.fraser@citrix.com>
Mon, 12 Apr 2010 06:23:21 +0000
(07:23 +0100)
Signed-off-by: James (Song Wei) <jsong@novell.com>
tools/hotplug/Linux/xen-hotplug-cleanup
patch
|
blob
|
history
diff --git
a/tools/hotplug/Linux/xen-hotplug-cleanup
b/tools/hotplug/Linux/xen-hotplug-cleanup
index adaa9d6a238db0e76ae1961c3f6043c30bd4685c..2b5a2b45908678d6dc06047189ccb57af0382ae9 100644
(file)
--- 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