[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] Re: VDI size on local repository always 0
Hi guys, from file XendVDI.py: class XendQCoWVDI(XendVDI): def __init__(self, uuid, sr_uuid, qcow_path, cfg_path, vsize, psize): XendVDI.__init__(self, uuid, sr_uuid) self.auto_save = False self.qcow_path = qcow_path self.cfg_path = cfg_path self.physical_utilisation = psize self.virtual_size = vsize self.auto_save = True self.other_config['location'] = 'tap:qcow:%s' % self.qcow_path def get_location(self): return self.other_config['location'] class XendLocalVDI(XendVDI): def __init__(self, vdi_struct): vdi_uuid = vdi_struct['uuid'] sr_uuid = vdi_struct['SR'] XendVDI.__init__(self, vdi_uuid, sr_uuid) self.auto_save = False self.cfg_path = None self.name_label = vdi_struct.get('name_label','') self.name_description = vdi_struct.get('name_description', '') self.physical_utilisation = 0 self.virtual_size = 0 self.type = vdi_struct.get('type', '') self.sharable = vdi_struct.get('sharable', False) self.read_only = vdi_struct.get('read_only', False) self.other_config = vdi_struct.get('other_config', {}) As you can see no physical utilisation and virtual size value in local repository. So, how could it possible to check vdi size? Thanks, Dante On Wed, May 5, 2010 at 1:40 PM, Dante <dantespace.ml@gmail.com> wrote: Hello guys, _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |