def proxy_write(self, image_name, str_block_size, str_block_index, str_offset, encoded_data): block_size = int(str_block_size) block_index = int(str_block_index) offset = int(str_offset) data = zlib.decompress(self._rpc_trans.decode(encoded_data)) return ukai_local_write(image_name, block_size, block_index, offset, data, self._config)
def _put_data_local(self, node, blk_idx, off_in_blk, data): ''' Writes the data to a local store. node: the target node from which we read the data. num: the block index of the disk image. offset: the offset relative to the beginning of the specified block. data: the data to be written. ''' return ukai_local_write(self._metadata.name, self._metadata.block_size, blk_idx, off_in_blk, data, self._config)
def proxy_write(self, image_name, block_size, block_index, offset, encoded_data): data = zlib.decompress(self._rpc_trans.decode(encoded_data)) return ukai_local_write(image_name, block_size, block_index, offset, data, self._config)