# HG changeset patch
# User Ewan Mellor <ewan@xxxxxxxxxxxxx>
# Date 1167058751 0
# Node ID 4fbefd9cb85e42fbf3e13c48675983696ac45221
# Parent 362233086f6618b54615b6ec4cd39837973d4ba1
Added get_record method.
By Alastair Tse <atse@xxxxxxxxxxxxx>.
Signed-off-by: Ewan Mellor <ewan@xxxxxxxxxxxxx>
---
tools/python/xen/xend/XendVDI.py | 15 +++++++++++++++
1 files changed, 15 insertions(+)
diff -r 362233086f66 -r 4fbefd9cb85e tools/python/xen/xend/XendVDI.py
--- a/tools/python/xen/xend/XendVDI.py Mon Dec 25 14:47:36 2006 +0000
+++ b/tools/python/xen/xend/XendVDI.py Mon Dec 25 14:59:11 2006 +0000
@@ -141,6 +141,21 @@ class XendVDI(AutoSaveObject):
return True
+ def get_record(self):
+ return {'uuid': self.uuid,
+ 'name_label': self.name_label,
+ 'name_description': self.name_description,
+ 'virtual_size': self.virtual_size,
+ 'physical_utilisation': self.physical_utilisation,
+ 'sector_size': self.sector_size,
+ 'parent': None,
+ 'children': [],
+ 'sharable': False,
+ 'readonly': False,
+ 'SR': self.sr.get_uuid(),
+ 'VBDs': []}
+
+
class XendQCOWVDI(XendVDI):
def __init__(self, uuid, sr_uuid, qcow_path, cfg_path, vsize, psize):
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|