|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [xen-unstable] [XEND] Make clear the distinction between
# 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
tools/python/xen/xend/server/DevController.py
--- 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(),
self.deviceClass,
@@ -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
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-changelog] [xen-unstable] [XEND] Make clear the distinction between backendPath and backendRoot,
Xen patchbot-unstable <=
|
|
|
|
|