ia64/xen-unstable
changeset 10739:f692a0a476c5
xend save/restore fix, only matches one device type (vbd or tap) on creation of vm.
author | jchesterfield@wicket.uk.xensource.com |
---|---|
date | Thu Jul 13 15:33:08 2006 +0100 (2006-07-13) |
parents | 3c841b50afb9 |
children | 83f047e6e99c |
files | tools/python/xen/xend/server/DevController.py |
line diff
1.1 --- a/tools/python/xen/xend/server/DevController.py Thu Jul 13 11:05:16 2006 +0100 1.2 +++ b/tools/python/xen/xend/server/DevController.py Thu Jul 13 15:33:08 2006 +0100 1.3 @@ -346,7 +346,7 @@ class DevController: 1.4 """@return The IDs of each of the devices currently configured for 1.5 this instance's deviceClass. 1.6 """ 1.7 - fe = self.frontendRoot() 1.8 + fe = self.backendRoot() 1.9 if transaction: 1.10 return map(lambda x: int(x.split('/')[-1]), transaction.list(fe)) 1.11 else: 1.12 @@ -439,6 +439,11 @@ class DevController: 1.13 def frontendRoot(self): 1.14 return "%s/device/%s" % (self.vm.getDomainPath(), self.deviceClass) 1.15 1.16 + def backendRoot(self): 1.17 + import xen.xend.XendDomain 1.18 + from xen.xend.xenstore.xsutil import GetDomainPath 1.19 + backdom = xen.xend.XendDomain.PRIV_DOMAIN 1.20 + return "%s/backend/%s/%s" % (GetDomainPath(backdom), self.deviceClass, self.vm.getDomid()) 1.21 1.22 def frontendMiscPath(self): 1.23 return "%s/device-misc/%s" % (self.vm.getDomainPath(),