debuggers.hg

changeset 21175:bf74d9c31674

blktap2: a little fix to xen-hotplug-cleanup

Signed-off-by: James (Song Wei) <jsong@novell.com>
author Keir Fraser <keir.fraser@citrix.com>
date Mon Apr 12 07:23:21 2010 +0100 (2010-04-12)
parents b5f9c6274d91
children 1d3bec665289
files tools/hotplug/Linux/xen-hotplug-cleanup
line diff
     1.1 --- a/tools/hotplug/Linux/xen-hotplug-cleanup	Mon Apr 12 07:22:16 2010 +0100
     1.2 +++ b/tools/hotplug/Linux/xen-hotplug-cleanup	Mon Apr 12 07:23:21 2010 +0100
     1.3 @@ -21,7 +21,7 @@ if [ "$vm" != "" ]; then
     1.4  
     1.5    # if the vm path does not exist and the device class is 'vbd' then we may have
     1.6    # a tap2 device
     1.7 -  if [ $(xenstore-read "$vm_dev" 2>/dev/null) != "" ] \
     1.8 +  if [ "$(xenstore-read "$vm_dev" 2>/dev/null)" != "" ] \
     1.9         && [ "${path_array[1]}" = "vbd" ]; then
    1.10      vm_dev="$vm/device/tap2/${path_array[3]}"
    1.11    fi