WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] xend save/restore fix, only matches one d

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] xend save/restore fix, only matches one device type (vbd or tap) on creation of vm.
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 13 Jul 2006 16:20:18 +0000
Delivery-date: Thu, 13 Jul 2006 09:22:57 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] xend save/restore fix, only matches one device type (vbd or tap) on creation of vm., Xen patchbot-unstable <=