1. 23 10月, 2014 4 次提交
  2. 05 10月, 2014 3 次提交
  3. 03 10月, 2014 2 次提交
  4. 27 9月, 2014 1 次提交
  5. 25 9月, 2014 3 次提交
  6. 22 9月, 2014 3 次提交
    • S
      block: delete cow block driver · 550830f9
      Stefan Hajnoczi 提交于
      This patch removes support for the cow file format.
      
      Normally we do not break backwards compatibility but in this case there
      is no impact and it is the most logical option.  Extraordinary claims
      require extraordinary evidence so I will show why removing the cow block
      driver is the right thing to do.
      
      The cow file format is the disk image format for Usermode Linux, a way
      of running a Linux system in userspace.  The performance of UML was
      never great and it was hacky, but it enjoyed some popularity before
      hardware virtualization support became mainstream.
      
      QEMU's block/cow.c is supposed to read this image file format.
      Unfortunately the file format was underspecified:
      
      1. Earlier Linux versions used the MAXPATHLEN constant for the backing
         filename field.  The value of MAXPATHLEN can change, so Linux
         switched to a 4096 literal but QEMU has a 1024 literal.
      
      2. Padding was not used on the header struct (both in the Linux kernel
         and in QEMU) so the struct layout varied across architectures.  In
         particular, i386 and x86_64 were different due to int64_t alignment
         differences.  Linux now uses __attribute__((packed)), QEMU does not.
      
      Therefore:
      
      1. QEMU cow images do not conform to the Linux cow image file format.
      
      2. cow images cannot be shared between different host architectures.
      
      This means QEMU cow images are useless and QEMU has not had bug reports
      from users actually hitting these issues.
      
      Let's get rid of this thing, it serves no purpose and no one will be
      affected.
      Signed-off-by: NStefan Hajnoczi <stefanha@redhat.com>
      Reviewed-by: NMarkus Armbruster <armbru@redhat.com>
      Message-id: 1410877464-20481-1-git-send-email-stefanha@redhat.com
      Signed-off-by: NStefan Hajnoczi <stefanha@redhat.com>
      550830f9
    • M
      iotests: Add more tests for qcow2 corruption · 5b0ed2be
      Max Reitz 提交于
      Add tests for unaligned L1/L2/reftable entries and non-fatal corruption
      reports.
      Signed-off-by: NMax Reitz <mreitz@redhat.com>
      Reviewed-by: NEric Blake <eblake@redhat.com>
      Message-id: 1409926039-29044-6-git-send-email-mreitz@redhat.com
      Signed-off-by: NStefan Hajnoczi <stefanha@redhat.com>
      5b0ed2be
    • M
      qcow2: Use qcow2_signal_corruption() for overlaps · adb43552
      Max Reitz 提交于
      Use the new function in case of a failed overlap check.
      
      This changes output in case of corruption, so adapt iotest 060's
      reference output accordingly.
      Signed-off-by: NMax Reitz <mreitz@redhat.com>
      Reviewed-by: NEric Blake <eblake@redhat.com>
      Reviewed-by: NBenoît Canet <benoit.canet@nodalink.com>
      Message-id: 1409926039-29044-4-git-send-email-mreitz@redhat.com
      Signed-off-by: NStefan Hajnoczi <stefanha@redhat.com>
      adb43552
  7. 12 9月, 2014 4 次提交
  8. 10 9月, 2014 1 次提交
  9. 29 8月, 2014 1 次提交
  10. 26 8月, 2014 1 次提交
  11. 22 8月, 2014 1 次提交
  12. 20 8月, 2014 3 次提交
  13. 15 8月, 2014 4 次提交
  14. 18 7月, 2014 2 次提交
  15. 09 7月, 2014 1 次提交
    • K
      block/backup: Fix hang for unaligned image size · d40593dd
      Kevin Wolf 提交于
      When doing a block backup of an image with an unaligned size (with
      respect to the BACKUP_CLUSTER_SIZE), qemu would check the allocation
      status of sectors after the end of the image. bdrv_is_allocated()
      returns a result that is valid for 0 sectors in this case, so the backup
      job ran into an endless loop.
      
      Stop looping when seeing a result valid for 0 sectors, we're at EOF then.
      
      The test case looks somewhat unrelated at first sight because I
      originally tried to reproduce a different suspected bug that turned out
      to not exist. Still a good test case and it accidentally found this one.
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      Reviewed-by: NEric Blake <eblake@redhat.com>
      d40593dd
  16. 07 7月, 2014 2 次提交
  17. 01 7月, 2014 4 次提交