1. 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
  2. 03 10月, 2010 1 次提交
  3. 08 9月, 2010 1 次提交
  4. 31 8月, 2010 1 次提交
  5. 06 7月, 2010 1 次提交
  6. 02 7月, 2010 1 次提交
  7. 28 5月, 2010 1 次提交
  8. 22 5月, 2010 1 次提交
  9. 03 5月, 2010 3 次提交
  10. 23 4月, 2010 3 次提交
  11. 10 3月, 2010 1 次提交
  12. 09 3月, 2010 1 次提交
  13. 20 2月, 2010 2 次提交
  14. 11 2月, 2010 2 次提交
  15. 08 2月, 2010 2 次提交
  16. 07 2月, 2010 1 次提交
  17. 27 1月, 2010 1 次提交
  18. 20 1月, 2010 1 次提交
  19. 14 1月, 2010 2 次提交
    • K
      qemu-img rebase · 3e85c6fd
      Kevin Wolf 提交于
      This adds a rebase subcommand to qemu-img which allows to change the backing
      file of an image.
      
      In default mode, both the current and the new backing file need to exist, and
      after the rebase, the COW image is guaranteed to have the same guest visible
      content as before. To achieve this, old and new backing file are compared and,
      if necessary, data is copied from the old backing file into the COW image.
      
      With -u an unsafe mode is enabled that doesn't require the backing files to
      exist. It merely changes the backing file reference in the COW image. This is
      useful for renaming or moving the backing file. The user is responsible to make
      sure that the new backing file has no changes compared to the old one, or
      corruption may occur.
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      3e85c6fd
    • K
      block: Introduce BDRV_O_NO_BACKING · b783e409
      Kevin Wolf 提交于
      If an image references a backing file that doesn't exist, qemu-img info fails
      to open this image. Exactly in this case the info would be valuable, though:
      the user might want to find out which file is missing.
      
      This patch introduces a BDRV_O_NO_BACKING flag to ignore the backing file when
      opening the image. qemu-img info is the first user and provides info now even
      if the backing file is invalid.
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      b783e409
  20. 04 12月, 2009 3 次提交
  21. 09 11月, 2009 2 次提交
  22. 05 10月, 2009 1 次提交
    • K
      qcow2: Increase maximum cluster size to 2 MB · 80ee15a6
      Kevin Wolf 提交于
      This patch increases the maximum qcow2 cluster size to 2 MB. Starting with 128k
      clusters, L2 tables span 2 GB or more of virtual disk space, causing 32 bit
      truncation and wraparound of signed integers. Therefore some variables need to
      use a larger data type.
      
      While being at reviewing data types, change some integers that are used for
      array indices to unsigned. In some places they were checked against some upper
      limit but not for negative values. This could avoid potential segfaults with
      corrupted qcow2 images.
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      80ee15a6
  23. 02 10月, 2009 2 次提交
  24. 22 7月, 2009 1 次提交
  25. 07 6月, 2009 1 次提交
  26. 06 6月, 2009 2 次提交