xend: Fix VDI.get_record
PATCH 1/1 xend: Fix VDI.get_record
Hi,
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 <[email protected]>
Best regards,
Kan
tools/python/xen/xend/XendVDI.py +6 -4
@@ -60,7 +60,8 @@ 'virtual_size', 'physical_utilisation', 'sharable', - 'read_only'] + 'read_only', + 'type'] SAVED_CFG_INT = ['sector_size', 'virtual_size', 'physical_utilisation']
@@ -155,11 +156,12 @@ '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-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel