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

[Xen-changelog] Move name back into main domain dir.



# HG changeset patch
# User cl349@xxxxxxxxxxxxxxxxxxxx
# Node ID 2277377dfc3aafee592c5c411ec135ee27bfa983
# Parent  5cbb2ecce16a15b4625f31b661edb64669ba2a5b
Move name back into main domain dir.
Signed-off-by: Christian Limpach <Christian.Limpach@xxxxxxxxxxxx>

diff -r 5cbb2ecce16a -r 2277377dfc3a tools/python/xen/xend/XendDomainInfo.py
--- a/tools/python/xen/xend/XendDomainInfo.py   Wed Sep 14 15:10:22 2005
+++ b/tools/python/xen/xend/XendDomainInfo.py   Wed Sep 14 15:25:28 2005
@@ -149,6 +149,7 @@
         path = "/".join(db.getPath().split("/")[0:-2])
         vm = cls(uuid, path, db)
         vm.setDomid(domid)
+        vm.name = vm.readStore("name")
         try:
             db.readDB()
         except: pass
@@ -202,7 +203,6 @@
     restore = classmethod(restore)
 
     __exports__ = [
-        DBVar('name',          ty='str'),
         DBVar('config',        ty='sxpr'),
         DBVar('start_time',    ty='float'),
         DBVar('state',         ty='str'),
@@ -264,6 +264,9 @@
 
         xstransact.Write(self.path, "uuid", self.uuid)
 
+    def readStore(self, key):
+        return xstransact.Read(self.path, key)
+
     def setDB(self, db):
         self.db = db
 
@@ -292,7 +295,7 @@
 
     def setName(self, name):
         self.name = name
-        self.db.name = self.name
+        xstransact.Write(self.path, "name", name)
 
     def getName(self):
         return self.name

_______________________________________________
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®.