1. 07 2月, 2011 1 次提交
    • S
      block/vdi: Fix wrong size in conditionally used memset, memcmp · d4e6590a
      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>
      (cherry picked from commit 4f3669ea)
      d4e6590a
  2. 25 11月, 2010 1 次提交
  3. 04 11月, 2010 1 次提交
  4. 06 7月, 2010 1 次提交
  5. 17 5月, 2010 3 次提交
  6. 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
  7. 08 1月, 2010 1 次提交
  8. 04 10月, 2009 1 次提交
  9. 12 9月, 2009 1 次提交
  10. 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
  11. 15 8月, 2009 1 次提交
  12. 11 8月, 2009 1 次提交