« Previous | Next » 

Revision 6eea90eb

ID6eea90eba47534d57f05d16c1b7d695574e2395d

Added by Stefan Weil over 14 years ago

block/vdi.c: Fix several bugs

  • 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: Stefan Weil <>
Signed-off-by: Anthony Liguori <>

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences