mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 02:30:03 +01:00
xend: Fix removing /vm/UUID/device paths when device cannot be disconnected
Change deviceDestroy behavior to remove /vm/UUID/device/... path only when force was used (as it already does so for both frontend and backend) and do the removing from xen-hotplug-cleanup script when we are sure the device is really not attached to the guest any more. Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
This commit is contained in:
1 parent
353e3c0d57
commit
8e3feb5145
2 files changed
+12
-2
No files matched your search
@@ -235,8 +235,8 @@ class DevController:
|
||||
xstransact.Remove(backpath)
|
||||
xstransact.Remove(frontpath)
|
||||
|
||||
# xstransact.Remove(self.devicePath()) ?? Below is the same ?
|
||||
self.vm._removeVm("device/%s/%d" % (self.deviceClass, dev))
|
||||
# xstransact.Remove(self.devicePath()) ?? Below is the same ?
|
||||
self.vm._removeVm("device/%s/%d" % (self.deviceClass, dev))
|
||||
|
||||
def configurations(self, transaction = None):
|
||||
return map(lambda x: self.configuration(x, transaction), self.deviceIDs(transaction))
|
||||
|
||||