Skip to contentSkip to conversation

xend: Fix VDI.get_record

PATCH New Masaki Kanno 1 participant 1 message Sep 15, 2009

lore
Share & tools
lore
#0 lore raw

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.

Best regards,
Kan

tools/python/xen/xend/XendVDI.py +6 -4
diff -r d2a32e24fe50 tools/python/xen/xend/XendVDI.py
@@ -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