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 VDI.get_record

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] xend: Fix VDI.get_record
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 15 Sep 2009 02:00:38 -0700
Delivery-date: Tue, 15 Sep 2009 02:02:33 -0700
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/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/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 Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1253003168 -3600
# Node ID 8f83388280008a40233f9bbcfa4b0237aa9f548d
# Parent  56595ee2720aded81ff3690948be5bcffe2b562c
xend: Fix VDI.get_record

We cannot get correct records of VDI by VDI.get_record.
The correct records of VDI are gotten by this patch.

Signed-off-by: Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx>
---
 tools/python/xen/xend/XendVDI.py |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diff -r 56595ee2720a -r 8f8338828000 tools/python/xen/xend/XendVDI.py
--- a/tools/python/xen/xend/XendVDI.py  Tue Sep 15 09:25:41 2009 +0100
+++ b/tools/python/xen/xend/XendVDI.py  Tue Sep 15 09:26:08 2009 +0100
@@ -60,7 +60,8 @@ class XendVDI(AutoSaveObject):
                  'virtual_size',
                  'physical_utilisation',
                  'sharable',
-                 'read_only']
+                 'read_only',
+                 'type']
 
     SAVED_CFG_INT = ['sector_size', 'virtual_size', 'physical_utilisation']
     
@@ -155,11 +156,12 @@ class XendVDI(AutoSaveObject):
                 'name_description': self.name_description,
                 'virtual_size': self.virtual_size,
                 'physical_utilisation': self.physical_utilisation,
-                'sharable': False,
-                'readonly': False,
+                'sharable': self.sharable,
+                'read_only': self.read_only,
+                'type': self.type,
                 'SR': self.sr_uuid,
                 'other_config': self.other_config,
-                'VBDs': []}
+                'VBDs': self.vbds}
 
     def get_location(self):
         raise NotImplementedError()

_______________________________________________
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 VDI.get_record, Xen patchbot-unstable <=