1. 15 12月, 2011 2 次提交
  2. 05 12月, 2011 1 次提交
  3. 24 11月, 2011 2 次提交
  4. 11 11月, 2011 1 次提交
  5. 29 10月, 2011 1 次提交
    • E
      Teach block/vdi about "discarded" (no longer allocated) blocks · c794b4e0
      Eric Sunshine 提交于
      An entry in the VDI block map will hold an offset to the actual block if
      the block is allocated, or one of two specially-interpreted values if
      not allocated. Using VirtualBox terminology, value VDI_IMAGE_BLOCK_FREE
      (0xffffffff) represents a never-allocated block (semantically arbitrary
      content).  VDI_IMAGE_BLOCK_ZERO (0xfffffffe) represents a "discarded"
      block (semantically zero-filled).  block/vdi knows only about
      VDI_IMAGE_BLOCK_FREE.  Teach it about VDI_IMAGE_BLOCK_ZERO.
      Signed-off-by: NEric Sunshine <sunshine@sunshineco.com>
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      c794b4e0
  6. 21 10月, 2011 1 次提交
  7. 21 8月, 2011 1 次提交
  8. 15 6月, 2011 1 次提交
  9. 08 6月, 2011 1 次提交
    • K
      qemu-img create: Fix displayed default cluster size · 99cce9fa
      Kevin Wolf 提交于
      When not specifying a cluster size on the command line, qemu-img printed
      a cluster size of 0:
      
          Formatting '/tmp/test.qcow2', fmt=qcow2 size=67108864
          encryption=off cluster_size=0
      
      This patch adds the default cluster size to the QEMUOptionParameter list, so
      that it displays the default value that is used.
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      99cce9fa
  10. 04 4月, 2011 1 次提交
  11. 15 3月, 2011 1 次提交
  12. 07 2月, 2011 1 次提交
    • S
      block/vdi: Fix wrong size in conditionally used memset, memcmp · 4f3669ea
      Stefan Weil 提交于
      Error report from cppcheck:
      block/vdi.c:122: error: Using sizeof for array given as function argument returns the size of pointer.
      block/vdi.c:128: error: Using sizeof for array given as function argument returns the size of pointer.
      
      Fix both by setting the correct size.
      
      The buggy code is only used when QEMU is build without uuid support.
      The bug is not critical, so there is no urgent need to apply it to
      old versions of QEMU.
      
      Cc: Kevin Wolf <kwolf@redhat.com>
      Signed-off-by: NStefan Weil <weil@mail.berlios.de>
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      4f3669ea
  13. 25 11月, 2010 1 次提交
  14. 04 11月, 2010 1 次提交
  15. 06 7月, 2010 1 次提交
  16. 17 5月, 2010 3 次提交
  17. 03 5月, 2010 1 次提交
    • K
      block: Open the underlying image file in generic code · 66f82cee
      Kevin Wolf 提交于
      Format drivers shouldn't need to bother with things like file names, but rather
      just get an open BlockDriverState for the underlying protocol. This patch
      introduces this behaviour for bdrv_open implementation. For protocols which
      need to access the filename to open their file/device/connection/... a new
      callback bdrv_file_open is introduced which doesn't get an underlying file
      opened.
      
      For now, also some of the more obscure formats use bdrv_file_open because they
      open() the file themselves instead of using the block.c functions. They need to
      be fixed in later patches.
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      66f82cee
  18. 08 1月, 2010 1 次提交
  19. 04 10月, 2009 1 次提交
  20. 12 9月, 2009 1 次提交
  21. 28 8月, 2009 1 次提交
    • S
      block/vdi.c: Fix several bugs · 6eea90eb
      Stefan Weil 提交于
      * The code for option '-static' was wrong, so image creation
        always created static images.
      
      * Static images created with qemu-img did not set header entry
        blocks_allocated.
      
      * The size of the block map must be rounded to the next multiple
        of SECTOR_SIZE, otherwise the block map is only read partially
        for block map sizes which are not a multiple of SECTOR_SIZE.
      Signed-off-by: NStefan Weil <weil@mail.berlios.de>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      6eea90eb
  22. 15 8月, 2009 1 次提交
  23. 11 8月, 2009 1 次提交