Diff for /qemu/block-cloop.c between versions 1.1.1.4 and 1.1.1.5

version 1.1.1.4, 2018/04/24 16:47:12 version 1.1.1.5, 2018/04/24 16:50:26
Line 75  cloop_close: Line 75  cloop_close:
   
     /* read offsets */      /* read offsets */
     offsets_size=s->n_blocks*sizeof(uint64_t);      offsets_size=s->n_blocks*sizeof(uint64_t);
     if(!(s->offsets=(uint64_t*)malloc(offsets_size)))      s->offsets=(uint64_t*)qemu_malloc(offsets_size);
         goto cloop_close;  
     if(read(s->fd,s->offsets,offsets_size)<offsets_size)      if(read(s->fd,s->offsets,offsets_size)<offsets_size)
         goto cloop_close;          goto cloop_close;
     for(i=0;i<s->n_blocks;i++) {      for(i=0;i<s->n_blocks;i++) {
Line 89  cloop_close: Line 88  cloop_close:
     }      }
   
     /* initialize zlib engine */      /* initialize zlib engine */
     if(!(s->compressed_block = malloc(max_compressed_block_size+1)))      s->compressed_block = qemu_malloc(max_compressed_block_size+1);
         goto cloop_close;      s->uncompressed_block = qemu_malloc(s->block_size);
     if(!(s->uncompressed_block = malloc(s->block_size)))  
         goto cloop_close;  
     if(inflateInit(&s->zstream) != Z_OK)      if(inflateInit(&s->zstream) != Z_OK)
         goto cloop_close;          goto cloop_close;
     s->current_block=s->n_blocks;      s->current_block=s->n_blocks;
Line 165  BlockDriver bdrv_cloop = { Line 162  BlockDriver bdrv_cloop = {
     NULL,      NULL,
     cloop_close,      cloop_close,
 };  };
   
   

Removed from v.1.1.1.4  
changed lines
  Added in v.1.1.1.5


unix.superglobalmegacorp.com