1. 06 Sep, 2013 5 commits
  2. 06 Aug, 2013 2 commits
  3. 15 Jul, 2013 1 commit
  4. 21 Jun, 2013 1 commit
  5. 07 Jun, 2013 2 commits
  6. 06 Jun, 2013 1 commit
  7. 04 Jun, 2013 2 commits
    • Wenchao Xia's avatar
      block: dump snapshot and image info to specified output · 5b917044
      Wenchao Xia authored
      bdrv_snapshot_dump() and bdrv_image_info_dump() do not dump to a buffer now,
      some internal buffers are still used for format control, which have no
      chance to be truncated. As a result, these two functions have no more issue
      of truncation, and they can be used by both qemu and qemu-img with correct
      parameter specified.
      Signed-off-by: default avatarWenchao Xia <xiawenc@linux.vnet.ibm.com>
      Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
    • Wenchao Xia's avatar
      block: move qmp and info dump related code to block/qapi.c · f364ec65
      Wenchao Xia authored
      This patch is a pure code move patch, except following modification:
      1 get_human_readable_size() is changed to static function.
      2 dump_human_image_info() is renamed to bdrv_image_info_dump().
      3 in qmp_query_block() and qmp_query_blockstats, use bdrv_next(bs)
      instead of direct traverse of global array 'bdrv_states'.
      4 collect_snapshots() and collect_image_info() are renamed, unused parameter
      *fmt in collect_image_info() is removed.
      5 code style fix.
      To avoid conflict and tip better, macro in header file is BLOCK_QAPI_H
      instead of QAPI_H. Now block.h and snapshot.h are at the same level in
      include path, block_int.h and qapi.h will both include them.
      Signed-off-by: default avatarWenchao Xia <xiawenc@linux.vnet.ibm.com>
      Reviewed-by: default avatarEric Blake <eblake@redhat.com>
      Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
  8. 22 Apr, 2013 1 commit
  9. 15 Mar, 2013 1 commit
  10. 22 Feb, 2013 6 commits
  11. 02 Jan, 2013 1 commit
    • liguang's avatar
      qemu-img: report size overflow error message · 79443397
      liguang authored
      qemu-img will complain when qcow or qcow2
      size overflow for 64 bits, report the right
      message in this condition.
      $./qemu-img create -f qcow2 /tmp/foo 0x10000000000000000
      before change:
      qemu-img: Invalid image size specified! You may use k, M, G or T suffixes for
      qemu-img: kilobytes, megabytes, gigabytes and terabytes.
      after change:
      qemu-img: Image size must be less than 8 EiB!
      [Resolved conflict with a9300911
       goto removal -- Stefan]
      Signed-off-by: default avatarliguang <lig.fnst@cn.fujitsu.com>
      Signed-off-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
  12. 19 Dec, 2012 4 commits
  13. 11 Dec, 2012 4 commits
  14. 05 Nov, 2012 1 commit
  15. 24 Oct, 2012 3 commits
  16. 14 Sep, 2012 1 commit
  17. 12 Sep, 2012 2 commits
  18. 10 Aug, 2012 1 commit
    • Stefan Hajnoczi's avatar
      block: add BLOCK_O_CHECK for qemu-img check · 058f8f16
      Stefan Hajnoczi authored
      Image formats with a dirty bit, like qed and qcow2, repair dirty image
      files upon open with BDRV_O_RDWR.  Performing automatic repair when
      qemu-img check runs is not ideal because the bdrv_open() call repairs
      the image before the actual bdrv_check() call from qemu-img.c.
      Fix this "double repair" since it leads to confusing output from
      qemu-img check.  Tell the block driver that this image is being opened
      just for bdrv_check().  This skips automatic repair and qemu-img.c can
      invoke it manually with bdrv_check().
      Update the golden output for qemu-iotests 039 to reflect the new
      qemu-img check output.
      Signed-off-by: default avatarStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
      Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
  19. 06 Aug, 2012 1 commit