1. 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
  2. 05 4月, 2012 2 次提交
  3. 12 3月, 2012 1 次提交
  4. 29 2月, 2012 1 次提交
  5. 09 2月, 2012 1 次提交
  6. 15 12月, 2011 1 次提交
  7. 29 11月, 2011 1 次提交
  8. 21 10月, 2011 1 次提交
  9. 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
  10. 23 8月, 2011 4 次提交
  11. 21 8月, 2011 1 次提交
  12. 19 7月, 2011 1 次提交
  13. 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
  14. 24 6月, 2011 2 次提交
  15. 18 5月, 2011 2 次提交
  16. 03 5月, 2011 1 次提交
    • K
      qemu-img resize: Fix option parsing · e80fec7f
      Kevin Wolf 提交于
      For shrinking images, you're supposed to use a negative size. However, the
      leading minus makes getopt think that it's an option and so you get the help
      text if you don't use -- like in 'qemu-img resize test.img -- -1G'.
      
      This patch handles the size first and removes it from the argument list so that
      getopt won't even try to interpret it and you don't need -- any more.
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      e80fec7f
  17. 27 4月, 2011 1 次提交
  18. 07 4月, 2011 2 次提交
  19. 10 2月, 2011 1 次提交
  20. 24 1月, 2011 2 次提交
  21. 17 12月, 2010 5 次提交
  22. 14 12月, 2010 7 次提交