WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] Add and use XendDomainInfo.getBackendFlags to decouple i

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] Add and use XendDomainInfo.getBackendFlags to decouple image.py from the
From: Xen patchbot -unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Mon, 19 Sep 2005 13:26:21 +0000
Delivery-date: Mon, 19 Sep 2005 13:26:25 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User emellor@ewan
# Node ID 8f9dfc5fb51c6110c3b59d53ee9f40dec90a58ba
# Parent  578a73fdeb2f3b76f83ad167691e07385e0f623e
Add and use XendDomainInfo.getBackendFlags to decouple image.py from the
internals of XendDomainInfo, in preparation for changing the latter.

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

diff -r 578a73fdeb2f -r 8f9dfc5fb51c tools/python/xen/xend/XendDomainInfo.py
--- a/tools/python/xen/xend/XendDomainInfo.py   Sun Sep 18 21:41:12 2005
+++ b/tools/python/xen/xend/XendDomainInfo.py   Sun Sep 18 21:42:02 2005
@@ -352,6 +352,10 @@
     def setStoreRef(self, ref):
         self.store_mfn = ref
         self.storeDom("store/ring-ref", ref)
+
+
+    def getBackendFlags(self):
+        return self.backend_flags
 
 
     def closeStoreChannel(self):
diff -r 578a73fdeb2f -r 8f9dfc5fb51c tools/python/xen/xend/image.py
--- a/tools/python/xen/xend/image.py    Sun Sep 18 21:41:12 2005
+++ b/tools/python/xen/xend/image.py    Sun Sep 18 21:42:02 2005
@@ -188,7 +188,7 @@
             return
 
         # Set params and call buildDomain().
-        self.flags = self.vm.backend_flags
+        self.flags = self.vm.getBackendFlags()
 
         if not os.path.isfile(self.kernel):
             raise VmError('Kernel image does not exist: %s' % self.kernel)

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] Add and use XendDomainInfo.getBackendFlags to decouple image.py from the, Xen patchbot -unstable <=