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] Added get_record method.

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] Added get_record method.
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Mon, 25 Dec 2006 10:55:08 -0800
Delivery-date: Mon, 25 Dec 2006 10:56:13 -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 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] Added get_record method., Xen patchbot-unstable <=