SHA256
1
0
forked from pool/xen

Updating link to change in openSUSE:Factory/xen revision 87.0

OBS-URL: https://build.opensuse.org/package/show/Virtualization/xen?expand=0&rev=2ee8e2a5a7c26c495d150d09da1a1674
This commit is contained in:
OBS User buildservice-autocommit
2010-04-02 22:15:37 +00:00
committed by Git OBS Bridge
parent bf52b1dc27
commit 4dea4cbc6e
14 changed files with 174 additions and 104 deletions

22
del_usb_xend_entry.patch Normal file
View File

@@ -0,0 +1,22 @@
Index: xen-4.0.0-testing/tools/python/xen/xend/XendDomainInfo.py
===================================================================
--- xen-4.0.0-testing.orig/tools/python/xen/xend/XendDomainInfo.py
+++ xen-4.0.0-testing/tools/python/xen/xend/XendDomainInfo.py
@@ -1306,8 +1306,15 @@ class XendDomainInfo:
frontpath = self.getDeviceController(deviceClass).frontendPath(dev)
backpath = xstransact.Read(frontpath, "backend")
thread.start_new_thread(self.getDeviceController(deviceClass).finishDeviceCleanup, (backpath, path))
-
- rc = self.getDeviceController(deviceClass).destroyDevice(devid, force)
+ if deviceClass =='vusb':
+ dev = self.getDeviceController(deviceClass).convertToDeviceNumber(devid)
+ state = self.getDeviceController(deviceClass).readBackend(dev, 'state')
+ if state == '1':
+ rc = self.getDeviceController(deviceClass).destroyDevice(devid, True)
+ else:
+ rc = self.getDeviceController(deviceClass).destroyDevice(devid, force)
+ else:
+ rc = self.getDeviceController(deviceClass).destroyDevice(devid, force)
if not force and rm_cfg:
# The backend path, other than the device itself,
# has to be passed because its accompanied frontend