1. 15 Jun, 2012 3 commits
  2. 14 May, 2012 1 commit
  3. 10 May, 2012 1 commit
  4. 20 Apr, 2012 1 commit
    • Liu Yuan's avatar
      qemu-img: let 'qemu-img convert' flush data · 80ccf93b
      Liu Yuan authored
      
      
      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: default avatarLiu Yuan <tailai.ly@taobao.com>
      Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
      80ccf93b
  5. 05 Apr, 2012 2 commits
  6. 12 Mar, 2012 1 commit
  7. 29 Feb, 2012 1 commit
  8. 09 Feb, 2012 1 commit
  9. 15 Dec, 2011 1 commit
  10. 28 Nov, 2011 1 commit
  11. 21 Oct, 2011 1 commit
  12. 29 Aug, 2011 1 commit
    • Kevin Wolf's avatar
      qemu-img: Require larger zero areas for sparse handling · a22f123c
      Kevin Wolf authored
      
      
      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: default avatarKevin Wolf <kwolf@redhat.com>
      a22f123c
  13. 23 Aug, 2011 4 commits
  14. 20 Aug, 2011 1 commit
  15. 19 Jul, 2011 1 commit
  16. 05 Jul, 2011 1 commit
    • Federico Simoncelli's avatar
      qemu-img: Add cache command line option · 661a0f71
      Federico Simoncelli authored
      
      
      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: default avatarFederico Simoncelli <fsimonce@redhat.com>
      Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
      661a0f71
  17. 24 Jun, 2011 2 commits
  18. 18 May, 2011 2 commits
  19. 03 May, 2011 1 commit
    • Kevin Wolf's avatar
      qemu-img resize: Fix option parsing · e80fec7f
      Kevin Wolf authored
      
      
      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: default avatarKevin Wolf <kwolf@redhat.com>
      e80fec7f
  20. 27 Apr, 2011 1 commit
  21. 07 Apr, 2011 2 commits
  22. 10 Feb, 2011 1 commit
  23. 24 Jan, 2011 2 commits
  24. 17 Dec, 2010 5 commits
  25. 14 Dec, 2010 2 commits