Diff for /qemu/qemu-img.c between versions 1.1.1.9 and 1.1.1.10

version 1.1.1.9, 2018/04/24 17:34:36 version 1.1.1.10, 2018/04/24 18:16:38
Line 537  static int img_convert(int argc, char ** Line 537  static int img_convert(int argc, char **
     BlockDriverState **bs, *out_bs;      BlockDriverState **bs, *out_bs;
     int64_t total_sectors, nb_sectors, sector_num, bs_offset;      int64_t total_sectors, nb_sectors, sector_num, bs_offset;
     uint64_t bs_sectors;      uint64_t bs_sectors;
     uint8_t buf[IO_BUF_SIZE];      uint8_t * buf;
     const uint8_t *buf1;      const uint8_t *buf1;
     BlockDriverInfo bdi;      BlockDriverInfo bdi;
     QEMUOptionParameter *param = NULL;      QEMUOptionParameter *param = NULL;
Line 656  static int img_convert(int argc, char ** Line 656  static int img_convert(int argc, char **
     bs_i = 0;      bs_i = 0;
     bs_offset = 0;      bs_offset = 0;
     bdrv_get_geometry(bs[0], &bs_sectors);      bdrv_get_geometry(bs[0], &bs_sectors);
       buf = qemu_malloc(IO_BUF_SIZE);
   
     if (flags & BLOCK_FLAG_COMPRESS) {      if (flags & BLOCK_FLAG_COMPRESS) {
         if (bdrv_get_info(out_bs, &bdi) < 0)          if (bdrv_get_info(out_bs, &bdi) < 0)
Line 788  static int img_convert(int argc, char ** Line 789  static int img_convert(int argc, char **
             }              }
         }          }
     }      }
       qemu_free(buf);
     bdrv_delete(out_bs);      bdrv_delete(out_bs);
     for (bs_i = 0; bs_i < bs_n; bs_i++)      for (bs_i = 0; bs_i < bs_n; bs_i++)
         bdrv_delete(bs[bs_i]);          bdrv_delete(bs[bs_i]);

Removed from v.1.1.1.9  
changed lines
  Added in v.1.1.1.10


unix.superglobalmegacorp.com