1. 23 4月, 2010 3 次提交
  2. 10 3月, 2010 1 次提交
  3. 09 3月, 2010 1 次提交
  4. 20 2月, 2010 2 次提交
  5. 11 2月, 2010 2 次提交
  6. 08 2月, 2010 2 次提交
  7. 07 2月, 2010 1 次提交
  8. 27 1月, 2010 1 次提交
  9. 20 1月, 2010 1 次提交
  10. 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
  11. 04 12月, 2009 3 次提交
  12. 09 11月, 2009 2 次提交
  13. 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
  14. 02 10月, 2009 2 次提交
  15. 22 7月, 2009 1 次提交
  16. 07 6月, 2009 1 次提交
  17. 06 6月, 2009 2 次提交
  18. 22 5月, 2009 3 次提交
  19. 15 5月, 2009 1 次提交
  20. 14 5月, 2009 1 次提交
  21. 22 4月, 2009 1 次提交
  22. 15 4月, 2009 1 次提交
  23. 06 4月, 2009 1 次提交
    • A
      Add host_device support to qemu-img. (Nolan Leake) · 93c65b47
      aliguori 提交于
      This patch allows the use a host_device as the destination for "qemu-img
      convert".
      
      I added a ->bdrv_create function host_device.  It merely verifies that
      the device exists and is large enough.
      
      A check is needed in the qemu-img convert loop to ensure that we write
      out all 0 sectors to the host_device.  Otherwise they end up with stale
      garbage where all zero sectors were expected.
      
      I also made the check against bdrv_is_allocated enabled for everything
      _except_ host devices, since there is no point in making the block
      backend write a bunch of zeros just so that we can memcmp them
      immediately afterwards.  Host devices can't benefit from this because
      there is no way to differentiate between a sector being unallocated
      because it was never written, or because it was written with all zeros
      and then made a trip through qemu-img convert.
      
      Finally, there is an unrelated fix for a typo in the error message
      printed if the destination device does not support ->bdrv_create.
      
      Signed-off-by: Nolan Leake <nolan <at> sigbus.net>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      
      
      git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6978 c046a42c-6fe2-441c-8c8c-71466251a162
      93c65b47
  24. 29 3月, 2009 1 次提交
  25. 12 3月, 2009 1 次提交
  26. 09 3月, 2009 2 次提交