[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] xend save/restore fix, only matches one device type (vbd or tap) on creation of vm.



# HG changeset patch
# User jchesterfield@xxxxxxxxxxxxxxxxxxxxxxx
# Node ID f692a0a476c51e1b18e4f6060b94dc92201ee518
# Parent  3c841b50afb9c0b7702b11a93dcbefbaa5a6f6f3
xend save/restore fix, only matches one device type (vbd or tap) on creation of 
vm.
---
 tools/python/xen/xend/server/DevController.py |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletion(-)

diff -r 3c841b50afb9 -r f692a0a476c5 
tools/python/xen/xend/server/DevController.py
--- a/tools/python/xen/xend/server/DevController.py     Thu Jul 13 11:05:16 
2006 +0100
+++ b/tools/python/xen/xend/server/DevController.py     Thu Jul 13 15:33:08 
2006 +0100
@@ -346,7 +346,7 @@ class DevController:
         """@return The IDs of each of the devices currently configured for
         this instance's deviceClass.
         """
-        fe = self.frontendRoot()
+        fe = self.backendRoot()
         if transaction:
             return map(lambda x: int(x.split('/')[-1]), transaction.list(fe))
         else:
@@ -439,6 +439,11 @@ class DevController:
     def frontendRoot(self):
         return "%s/device/%s" % (self.vm.getDomainPath(), self.deviceClass)
 
+    def backendRoot(self):
+        import xen.xend.XendDomain
+       from xen.xend.xenstore.xsutil import GetDomainPath
+        backdom = xen.xend.XendDomain.PRIV_DOMAIN
+        return "%s/backend/%s/%s" % (GetDomainPath(backdom), self.deviceClass, 
self.vm.getDomid())
 
     def frontendMiscPath(self):
         return "%s/device-misc/%s" % (self.vm.getDomainPath(),

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.