1. 11 12月, 2012 4 次提交
  2. 06 11月, 2012 1 次提交
  3. 24 10月, 2012 3 次提交
  4. 14 9月, 2012 1 次提交
  5. 12 9月, 2012 2 次提交
  6. 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
  7. 07 8月, 2012 1 次提交
  8. 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
  9. 15 6月, 2012 3 次提交
  10. 14 5月, 2012 1 次提交
  11. 10 5月, 2012 1 次提交
  12. 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
  13. 05 4月, 2012 2 次提交
  14. 12 3月, 2012 1 次提交
  15. 29 2月, 2012 1 次提交
  16. 09 2月, 2012 1 次提交
  17. 15 12月, 2011 1 次提交
  18. 29 11月, 2011 1 次提交
  19. 21 10月, 2011 1 次提交
  20. 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
  21. 23 8月, 2011 4 次提交
  22. 21 8月, 2011 1 次提交
  23. 19 7月, 2011 1 次提交
  24. 05 7月, 2011 1 次提交
    • F
      qemu-img: Add cache command line option · 661a0f71
      Federico Simoncelli 提交于
      qemu-img currently writes disk images using writeback and filling
      up the cache buffers which are then flushed by the kernel preventing
      other processes from accessing the storage.
      This is particularly bad in cluster environments where time-based
      algorithms might be in place and accessing the storage within
      certain timeouts is critical.
      This patch adds the option to choose a cache method when writing
      disk images.
      Signed-off-by: NFederico Simoncelli <fsimonce@redhat.com>
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      661a0f71
  25. 24 6月, 2011 2 次提交
  26. 18 5月, 2011 2 次提交