[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH] a little fix of blktap2 in xen-hotplug-cleanup


  • To: xen-devel@xxxxxxxxxxxxxxxxxxx
  • From: "James (song wei)" <jsong@xxxxxxxxxx>
  • Date: Sun, 11 Apr 2010 18:51:15 -0700 (PDT)
  • Delivery-date: Sun, 11 Apr 2010 18:52:07 -0700
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

a little fix for blktap2  in xen-hotplug-cleanup

-James (Song Wei)

Signed-off-by: James (Song Wei) <jsong@xxxxxxxxxx>

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 
-- 
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.


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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.