mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
xend: Slightly finesse allocation of vmpath in xenstore.
Signed-off-by: Keir Fraser <keir@xensource.com>
This commit is contained in:
1 parent
ce75f2335a
commit
884ec5f334
1 file changed
+3
-1
@@ -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
|
||||
|
||||