1. 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
  2. 23 8月, 2011 4 次提交
  3. 21 8月, 2011 1 次提交
  4. 19 7月, 2011 1 次提交
  5. 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
  6. 24 6月, 2011 2 次提交
  7. 18 5月, 2011 2 次提交
  8. 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
  9. 27 4月, 2011 1 次提交
  10. 07 4月, 2011 2 次提交
  11. 10 2月, 2011 1 次提交
  12. 24 1月, 2011 2 次提交
  13. 17 12月, 2010 5 次提交
  14. 14 12月, 2010 9 次提交
  15. 30 10月, 2010 1 次提交
  16. 22 10月, 2010 2 次提交
    • K
      qemu-img: Fix qemu-img convert -obacking_file · a18953fb
      Kevin Wolf 提交于
      The old -B option caused a backing file to be used for the converted image and
      to avoid copying clusters from the old backing file. When replaced with
      -obacking_file, qemu-img convert does assign the backing file to the new image,
      but it doesn't realize that it should avoid copying clusters from the backing
      file.
      
      This patch checks the -o options for a backing_file and applies the same logic
      as for -B in this case.
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      a18953fb
    • E
      Copy snapshots out of QCOW2 disk · 51ef6727
      edison 提交于
      In order to backup snapshots, created from QCOW2 iamge, we want to copy snapshots out of QCOW2 disk to a seperate storage.
      The following patch adds a new option in "qemu-img": qemu-img convert -f qcow2 -O qcow2 -s snapshot_name src_img bck_img.
      Right now, it only supports to copy the full snapshot, delta snapshot is on the way.
      
      Changes from V1: all the comments from Kevin are addressed:
      Add read-only checking
      Fix coding style
      Change the name from bdrv_snapshot_load to bdrv_snapshot_load_tmp
      Signed-off-by: NDisheng Su <edison@cloud.com>
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      51ef6727
  17. 03 10月, 2010 1 次提交
  18. 08 9月, 2010 1 次提交
  19. 31 8月, 2010 1 次提交
  20. 06 7月, 2010 1 次提交