Skip to contentSkip to conversation

a little fix of blktap2 in xen-hotplug-cleanup

PATCH New James (song wei) 1 participant 1 message Apr 12, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 a little fix of blktap2 in xen-hotplug-cleanup

a little fix for blktap2 in xen-hotplug-cleanup

-James (Song Wei)

diff -r 3376c90960e8 tools/hotplug/Linux/xen-hotplug-cleanup
--- a/tools/hotplug/Linux/xen-hotplug-cleanup Wed Apr 07 10:17:27 2010
+0100
+++ b/tools/hotplug/Linux/xen-hotplug-cleanup Thu Apr 08 14:51:12 2010
+0800
@@ -21,7 +21,7 @@

   # 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 
Signature · 2 lines
View this message in context: http://old.nabble.com/-PATCH--a-little-fix-of-blktap2-in-xen-hotplug-cleanup-tp28213169p28213169.html
Sent from the Xen - Dev mailing list archive at Nabble.com.