|   | 
      | 
  
  
      | 
      | 
  
 
     | 
    | 
  
  
     | 
    | 
  
  
    |   | 
      | 
  
  
    | 
         
xen-devel
[Xen-devel] a little fix of blktap2  in xen-hotplug-cleanup
 
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/a-little-fix-of-blktap2--in-xen-hotplug-cleanup-tp28174878p28174878.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
 |   
 
| <Prev in Thread] | 
Current Thread | 
[Next in Thread> |  
- [Xen-devel] a little fix of blktap2  in xen-hotplug-cleanup,
James (song wei) <=
  
 |  
  
 | 
    | 
  
  
    |   | 
    |