1. 06 9月, 2011 1 次提交
  2. 23 8月, 2011 10 次提交
  3. 21 8月, 2011 1 次提交
  4. 02 8月, 2011 1 次提交
  5. 24 6月, 2011 1 次提交
  6. 14 6月, 2011 1 次提交
  7. 08 6月, 2011 2 次提交
  8. 10 2月, 2011 4 次提交
  9. 07 2月, 2011 1 次提交
  10. 31 1月, 2011 1 次提交
  11. 24 1月, 2011 1 次提交
  12. 17 12月, 2010 2 次提交
  13. 04 11月, 2010 1 次提交
  14. 22 10月, 2010 4 次提交
    • 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
    • K
      qcow2: Remove old image creation function · 9b036055
      Kevin Wolf 提交于
      They have been #ifdef'd out by the previous patch.
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      9b036055
    • K
      qcow2: Simplify image creation · a9420734
      Kevin Wolf 提交于
      Instead of doing lots of magic for setting up initial refcount blocks and stuff
      create a minimal (inconsistent) image, open it and initialize the rest with
      regular qcow2 functions.
      
      This is a complete rewrite of the image creation function. The old
      implementating is #ifdef'd out and will be removed by the next patch (removing
      it here would have made the diff unreadable because diff tries to find
      similarities when it's really a rewrite)
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      a9420734
    • S
      qcow2: Support exact L1 table growth · 72893756
      Stefan Hajnoczi 提交于
      The L1 table grow operation includes a size calculation that bumps up
      the new L1 table size in order to anticipate the size needs of vmstate
      data.  This helps reduce the number of times that the L1 table has to be
      grown when vmstate data is appended.
      
      This size overhead is not necessary during image creation,
      bdrv_truncate(), or snapshot goto operations.  In fact, existing
      qemu-iotests that exercise table growth are no longer able to trigger it
      because image creation preallocates an L1 table that is too large after
      changes to qcow_create2().
      
      This patch keeps the size calculation but also adds exact growth for
      callers that do not want to inflate the L1 table size unnecessarily.
      Signed-off-by: NStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      72893756
  15. 21 9月, 2010 2 次提交
    • K
      qcow2: Avoid bounce buffers for AIO write requests · 6f5f060b
      Kevin Wolf 提交于
      qcow2 used to use bounce buffers for any AIO requests. This does not only imply
      unnecessary copying, but also unbounded allocations which should be avoided.
      
      This patch removes bounce buffers from the normal AIO write path. Encrypted
      images continue to use a bounce buffer, however with constant size.
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      6f5f060b
    • K
      qcow2: Avoid bounce buffers for AIO read requests · bd28f835
      Kevin Wolf 提交于
      qcow2 used to use bounce buffers for any AIO requests. This does not only imply
      unnecessary copying, but also unbounded allocations which should be avoided.
      
      This patch removes bounce buffers from the normal AIO read path, and constrains
      them to a constant size for encrypted images.
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      bd28f835
  16. 06 7月, 2010 1 次提交
  17. 02 7月, 2010 1 次提交
  18. 22 6月, 2010 1 次提交
  19. 28 5月, 2010 1 次提交
    • K
      qcow2: Allow qcow2_get_cluster_offset to return errors · 1c46efaa
      Kevin Wolf 提交于
      qcow2_get_cluster_offset() looks up a given virtual disk offset and returns the
      offset of the corresponding cluster in the image file. Errors (e.g. L2 table
      can't be read) are currenctly indicated by a return value of 0, which is
      unfortuately the same as for any unallocated cluster. So in effect we can't
      check for errors.
      
      This makes the old return value a by-reference parameter and returns the usual
      0/-errno error code.
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      1c46efaa
  20. 22 5月, 2010 1 次提交
  21. 17 5月, 2010 1 次提交
  22. 08 5月, 2010 1 次提交