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/
Home Products Support Community News


[Xen-changelog] [xen-unstable] [XEND] Make clear the distinction between

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] [XEND] Make clear the distinction between backendPath and backendRoot
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 10 Nov 2006 15:30:19 +0000
Delivery-date: Fri, 10 Nov 2006 07:30:28 -0800
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 Alastair Tse <atse@xxxxxxxxxxxxx>
# Node ID b15168de4d917354f5aba92ba5fb09926ca71889
# Parent  40a9f315b70869a8c5f29dda2b1592e07c004b47
[XEND] Make clear the distinction between backendPath and backendRoot
in DevController.

Signed-off-by: Alastair Tse <atse@xxxxxxxxxxxxx>
 tools/python/xen/xend/server/DevController.py |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diff -r 40a9f315b708 -r b15168de4d91 
--- a/tools/python/xen/xend/server/DevController.py     Fri Nov 10 12:48:18 
2006 +0000
+++ b/tools/python/xen/xend/server/DevController.py     Fri Nov 10 12:49:22 
2006 +0000
@@ -455,7 +455,9 @@ class DevController:
     def backendPath(self, backdom, devid):
-        """@param backdom [XendDomainInfo] The backend domain info."""
+        """Construct backend path given the backend domain and device id.
+        @param backdom [XendDomainInfo] The backend domain info."""
         return "%s/backend/%s/%s/%d" % (backdom.getDomainPath(),
@@ -470,10 +472,10 @@ class DevController:
         return "%s/device/%s" % (self.vm.getDomainPath(), self.deviceClass)
     def backendRoot(self):
-        import xen.xend.XendDomain
+        """Construct backend root path assuming backend is domain 0."""
+        from xen.xend.XendDomain import DOM0_ID
         from xen.xend.xenstore.xsutil import GetDomainPath
-        backdom = xen.xend.XendDomain.DOM0_ID
-        return "%s/backend/%s/%s" % (GetDomainPath(backdom),
+        return "%s/backend/%s/%s" % (GetDomainPath(DOM0_ID),
                                      self.deviceClass, self.vm.getDomid())
     def frontendMiscPath(self):

Xen-changelog mailing list

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] [XEND] Make clear the distinction between backendPath and backendRoot, Xen patchbot-unstable <=