ia64/xen-unstable

changeset 15991:0b04a48f65cc

xend: Slightly finesse allocation of vmpath in xenstore.
Signed-off-by: Keir Fraser <keir@xensource.com>
author Keir Fraser <keir@xensource.com>
date Wed Sep 26 17:11:07 2007 +0100 (2007-09-26)
parents d4511c625a50
children b220ea0a2feb
files tools/python/xen/xend/XendDomainInfo.py
line diff
     1.1 --- a/tools/python/xen/xend/XendDomainInfo.py	Wed Sep 26 16:50:28 2007 +0100
     1.2 +++ b/tools/python/xen/xend/XendDomainInfo.py	Wed Sep 26 17:11:07 2007 +0100
     1.3 @@ -355,7 +355,9 @@ class XendDomainInfo:
     1.4          self.vmpath = vmpath
     1.5          i = 0
     1.6          while self.vmpath == None:
     1.7 -            self.vmpath = XS_VMROOT + self.info['uuid'] + '/' + str(i)
     1.8 +            self.vmpath = XS_VMROOT + self.info['uuid']
     1.9 +            if i != 0:
    1.10 +                self.vmpath = self.vmpath + '-' + str(i)
    1.11              try:
    1.12                  if self._readVm("uuid"):
    1.13                      self.vmpath = None