[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] xend: Slightly finesse allocation of vmpath in xenstore.



# HG changeset patch
# User Keir Fraser <keir@xxxxxxxxxxxxx>
# Date 1190823067 -3600
# Node ID 0b04a48f65ccf6c1df914af2ab3500baf27842ba
# Parent  d4511c625a508a1530d7e066025ff83213536dba
xend: Slightly finesse allocation of vmpath in xenstore.
Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>
---
 tools/python/xen/xend/XendDomainInfo.py |    4 +++-
 1 files changed, 3 insertions(+), 1 deletion(-)

diff -r d4511c625a50 -r 0b04a48f65cc tools/python/xen/xend/XendDomainInfo.py
--- a/tools/python/xen/xend/XendDomainInfo.py   Wed Sep 26 16:50:28 2007 +0100
+++ b/tools/python/xen/xend/XendDomainInfo.py   Wed Sep 26 17:11:07 2007 +0100
@@ -355,7 +355,9 @@ class XendDomainInfo:
         self.vmpath = vmpath
         i = 0
         while self.vmpath == None:
-            self.vmpath = XS_VMROOT + self.info['uuid'] + '/' + str(i)
+            self.vmpath = XS_VMROOT + self.info['uuid']
+            if i != 0:
+                self.vmpath = self.vmpath + '-' + str(i)
             try:
                 if self._readVm("uuid"):
                     self.vmpath = None

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.