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] [xen-unstable] [XEND] Fix missing SR references in XendA

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] [XEND] Fix missing SR references in XendAPI
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 02 Nov 2006 22:09:17 +0000
Delivery-date: Thu, 02 Nov 2006 21:43:16 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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 Alastair Tse <atse@xxxxxxxxxxxxx>
# Node ID 808f5aa6dbb017d0e2d5c69705b53f6985aa96c1
# Parent  f7f8f003892065b0d9f1d8105cdba35e81660574
[XEND] Fix missing SR references in XendAPI

Signed-off-by: Alastair Tse <atse@xxxxxxxxxxxxx>
---
 tools/python/xen/xend/XendAPI.py |    3 +++
 1 files changed, 3 insertions(+)

diff -r f7f8f0038920 -r 808f5aa6dbb0 tools/python/xen/xend/XendAPI.py
--- a/tools/python/xen/xend/XendAPI.py  Thu Oct 26 19:43:11 2006 +0100
+++ b/tools/python/xen/xend/XendAPI.py  Fri Oct 27 16:44:15 2006 +0100
@@ -1327,12 +1327,15 @@ class XendAPI:
         return xen_api_success(sr.list_images())
 
     def sr_get_virtual_allocation(self, session, sr_ref):
+        sr = XendNode.instance().get_sr()        
         return sr.used_space_bytes()
 
     def sr_get_physical_utilisation(self, session, sr_ref):
+        sr = XendNode.instance().get_sr()        
         return sr.used_space_bytes()
 
     def sr_get_physical_size(self, session, sr_ref):
+        sr = XendNode.instance().get_sr()        
         return sr.total_space_bytes()
     
     def sr_get_type(self, session, sr_ref):

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] [XEND] Fix missing SR references in XendAPI, Xen patchbot-unstable <=