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

[Xen-changelog] Renamed XendDomainInfo.getTargetMemory to getMemoryTarget, for consistency with



# HG changeset patch
# User emellor@ewan
# Node ID 5007bebba2f58c567f58adebe6159848fe107760
# Parent  7e8eac6e96c6099d34fc1251c771f075096e471c
Renamed XendDomainInfo.getTargetMemory to getMemoryTarget, for consistency with
XendDomainInfo.setMemoryTarget.

Signed-off-by: Ewan Mellor <ewan@xxxxxxxxxxxxx>

diff -r 7e8eac6e96c6 -r 5007bebba2f5 tools/python/xen/xend/XendDomainInfo.py
--- a/tools/python/xen/xend/XendDomainInfo.py   Sun Sep 18 14:41:28 2005
+++ b/tools/python/xen/xend/XendDomainInfo.py   Sun Sep 18 14:50:12 2005
@@ -339,7 +339,7 @@
     def getSsidref(self):
         return self.ssidref
 
-    def getTargetMemory(self):
+    def getMemoryTarget(self):
         """Get this domain's target memory size, in MiB."""
         return self.memory
 
diff -r 7e8eac6e96c6 -r 5007bebba2f5 tools/python/xen/xend/image.py
--- a/tools/python/xen/xend/image.py    Sun Sep 18 14:41:28 2005
+++ b/tools/python/xen/xend/image.py    Sun Sep 18 14:50:12 2005
@@ -313,7 +313,7 @@
                            image          = self.kernel,
                            control_evtchn = self.device_channel.port2,
                            store_evtchn   = store_evtchn,
-                           memsize        = self.vm.getTargetMemory(),
+                           memsize        = self.vm.getMemoryTarget(),
                            memmap         = self.memmap_value,
                            cmdline        = self.cmdline,
                            ramdisk        = self.ramdisk,
@@ -413,7 +413,7 @@
             args = args + vnc
         args = args + ([ "-d",  "%d" % self.vm.getDomain(),
                   "-p", "%d" % self.device_channel.port1,
-                  "-m", "%s" % self.vm.getTargetMemory() ])
+                  "-m", "%s" % self.vm.getMemoryTarget() ])
         args = args + self.dmargs
         env = dict(os.environ)
         env['DISPLAY'] = self.display
diff -r 7e8eac6e96c6 -r 5007bebba2f5 
tools/python/xen/xend/server/SrvDomainDir.py
--- a/tools/python/xen/xend/server/SrvDomainDir.py      Sun Sep 18 14:41:28 2005
+++ b/tools/python/xen/xend/server/SrvDomainDir.py      Sun Sep 18 14:50:12 2005
@@ -155,7 +155,7 @@
                 req.write('<li><a href="%s%s"> Domain %s</a>'
                           % (url, d.getName(), d.getName()))
                 req.write('id=%s' % d.getDomain())
-                req.write('memory=%d'% d.getTargetMemory())
+                req.write('memory=%d'% d.getMemoryTarget())
                 req.write('ssidref=%d'% d.getSsidref())
                 req.write('</li>')
             req.write('</ul>')

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