ia64/xen-unstable

changeset 19319:131c799580cb

Revert c/s 19250, as it seems to be causing problems.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Thu Mar 12 08:32:30 2009 +0000 (2009-03-12)
parents 5b8f9ef92e00
children 75fa5c00a100
files tools/hotplug/Linux/xen-hotplug-cleanup tools/python/xen/xend/server/DevController.py
line diff
     1.1 --- a/tools/hotplug/Linux/xen-hotplug-cleanup	Wed Mar 11 19:13:47 2009 +0000
     1.2 +++ b/tools/hotplug/Linux/xen-hotplug-cleanup	Thu Mar 12 08:32:30 2009 +0000
     1.3 @@ -11,13 +11,6 @@ dir=$(dirname "$0")
     1.4  # This is pretty horrible, but there's not really a nicer way of solving this.
     1.5  claim_lock "block"
     1.6  
     1.7 -# split backend/DEVCLASS/VMID/DEVID on slashes
     1.8 -path_array=( ${XENBUS_PATH//\// } )
     1.9 -# get /vm/UUID path
    1.10 -vm=$(xenstore-read "/local/domain/${path_array[2]}/vm")
    1.11 -# construct /vm/UUID/device/DEVCLASS/DEVID
    1.12 -vm_dev="$vm/device/${path_array[1]}/${path_array[3]}"
    1.13 -
    1.14  # remove device frontend store entries
    1.15  xenstore-rm -t \
    1.16    $(xenstore-read "$XENBUS_PATH/frontend" 2>/dev/null) 2>/dev/null || true
    1.17 @@ -26,7 +19,4 @@ xenstore-rm -t \
    1.18  xenstore-rm -t "$XENBUS_PATH"        2>/dev/null || true
    1.19  xenstore-rm -t "error/$XENBUS_PATH"  2>/dev/null || true
    1.20  
    1.21 -# remove device path from /vm/UUID
    1.22 -xenstore-rm -t "$vm_dev" 2>/dev/null || true
    1.23 -
    1.24  release_lock "block"
     2.1 --- a/tools/python/xen/xend/server/DevController.py	Wed Mar 11 19:13:47 2009 +0000
     2.2 +++ b/tools/python/xen/xend/server/DevController.py	Thu Mar 12 08:32:30 2009 +0000
     2.3 @@ -235,8 +235,8 @@ class DevController:
     2.4                  xstransact.Remove(backpath)
     2.5              xstransact.Remove(frontpath)
     2.6  
     2.7 -            # xstransact.Remove(self.devicePath()) ?? Below is the same ?
     2.8 -            self.vm._removeVm("device/%s/%d" % (self.deviceClass, dev))
     2.9 +        # xstransact.Remove(self.devicePath()) ?? Below is the same ?
    2.10 +        self.vm._removeVm("device/%s/%d" % (self.deviceClass, dev))
    2.11  
    2.12      def configurations(self, transaction = None):
    2.13          return map(lambda x: self.configuration(x, transaction), self.deviceIDs(transaction))