1. 02 1月, 2013 1 次提交
    • L
      qemu-img: report size overflow error message · 79443397
      liguang 提交于
      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: Nliguang <lig.fnst@cn.fujitsu.com>
      Signed-off-by: NStefan Hajnoczi <stefanha@redhat.com>
      79443397
  2. 19 12月, 2012 4 次提交
  3. 11 12月, 2012 4 次提交
  4. 06 11月, 2012 1 次提交
  5. 24 10月, 2012 3 次提交
  6. 14 9月, 2012 1 次提交
  7. 12 9月, 2012 2 次提交
  8. 10 8月, 2012 1 次提交
    • S
      block: add BLOCK_O_CHECK for qemu-img check · 058f8f16
      Stefan Hajnoczi 提交于
      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: NStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      058f8f16
  9. 07 8月, 2012 1 次提交
  10. 03 8月, 2012 1 次提交
    • P
      Support 'help' as a synonym for '?' in command line options · c8057f95
      Peter Maydell 提交于
      For command line options which permit '?' meaning 'please list the
      permitted values', add support for 'help' as a synonym, by abstracting
      the check out into a helper function.
      
      This change means that in some cases where we were being lazy in
      our string parsing, "?junk" will now be rejected as an invalid option
      rather than being (undocumentedly) treated the same way as "?".
      
      Update the documentation to use 'help' rather than '?', since '?'
      is a shell metacharacter and thus prone to fail confusingly if there
      is a single character filename in the current working directory and
      the '?' has not been escaped. It's therefore better to steer users
      towards 'help', though '?' is retained for backwards compatibility.
      
      We do not, however, update the output of the system emulator's -help
      (or any documentation autogenerated from the qemu-options.hx which
      is the source of the -help text) because libvirt parses our -help
      output and will break. At a later date when QEMU provides a better
      interface so libvirt can avoid having to do this, we can update the
      -help text too.
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      c8057f95
  11. 15 6月, 2012 3 次提交
  12. 14 5月, 2012 1 次提交
  13. 10 5月, 2012 1 次提交
  14. 20 4月, 2012 1 次提交
    • L
      qemu-img: let 'qemu-img convert' flush data · 80ccf93b
      Liu Yuan 提交于
      The 'qemu-img convert -h' advertise that the default cache mode is
      'writeback', while in fact it is 'unsafe'.
      
      This patch 1) fix the help manual and 2) let bdrv_close() call bdrv_flush()
      
      2) is needed because some backend storage doesn't have a self-flush
      mechanism(for e.g., sheepdog), so we need to call bdrv_flush() to make
      sure the image is really writen to the storage instead of hanging around
      writeback cache forever.
      Signed-off-by: NLiu Yuan <tailai.ly@taobao.com>
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      80ccf93b
  15. 05 4月, 2012 2 次提交
  16. 12 3月, 2012 1 次提交
  17. 29 2月, 2012 1 次提交
  18. 09 2月, 2012 1 次提交
  19. 15 12月, 2011 1 次提交
  20. 29 11月, 2011 1 次提交
  21. 21 10月, 2011 1 次提交
  22. 29 8月, 2011 1 次提交
    • K
      qemu-img: Require larger zero areas for sparse handling · a22f123c
      Kevin Wolf 提交于
      By default, require 4k of consecutive zero bytes for qemu-img to make the
      output file sparse by not issuing a write request for the zeroed parts. Add an
      -S option to allow users to tune this setting.
      
      This helps to avoid situations where a lot of zero sectors and data sectors are
      mixed and qemu-img tended to issue many tiny 512 byte writes.
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      a22f123c
  23. 23 8月, 2011 4 次提交
  24. 21 8月, 2011 1 次提交
  25. 19 7月, 2011 1 次提交