xend save/restore fix, only matches one device type (vbd or tap) on creation of vm.

This commit is contained in:
jchesterfield@wicket.uk.xensource.com committed 2006-07-13 15:33:08 +01:00
1 parent 2ab963d33a
commit 093efe7838
1 file changed
+6 -1
@@ -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(),
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.