mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 18:21:39 +01:00
[XEND] Fix missing SR references in XendAPI
Signed-off-by: Alastair Tse <atse@xensource.com>
This commit is contained in:
1 parent
b6ee4d8a3f
commit
8fa283dfde
1 file changed
+3
@@ -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):
|
||||
|
||||