1. 12 9月, 2013 1 次提交
  2. 06 9月, 2013 3 次提交
  3. 22 8月, 2013 4 次提交
  4. 06 8月, 2013 7 次提交
  5. 02 8月, 2013 1 次提交
  6. 05 7月, 2013 1 次提交
  7. 28 6月, 2013 1 次提交
    • F
      vmdk: remove wrong calculation of relative path · 8ed610a1
      Fam Zheng 提交于
      When creating image with backing file, the driver tries to calculate the
      relative path from created image file to backing file, but the path
      computation is incorrect. e.g.:
      
          $ qemu-img create -f vmdk -b vmdk-data-disk.vmdk vmdk-data-snapshot1
          Formatting 'vmdk-data-snapshot1', fmt=vmdk size=10737418240
          backing_file='vmdk-data-disk.vmdk' compat6=off zeroed_grain=off
      
          $ qemu-img info vmdk-data-snapshot1
          image: vmdk-data-snapshot1
          file format: vmdk
          virtual size: 10G (10737418240 bytes)
          disk size: 12K
      ->  backing file: disk.vmdk
      
      The common part in file names, "vmdk-data-", is incorrectly forgotten by
      relative_path(). As the VMDK specification has no restriction on
      parentNameHint to be relative path, we simply remove this by using the
      backing_file option.
      
      Cc: qemu-stable@nongnu.org
      Signed-off-by: NFam Zheng <famz@redhat.com>
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      8ed610a1
  8. 24 6月, 2013 1 次提交
  9. 17 6月, 2013 2 次提交
  10. 03 5月, 2013 6 次提交
  11. 23 3月, 2013 1 次提交
  12. 15 3月, 2013 2 次提交
  13. 01 2月, 2013 2 次提交
  14. 26 1月, 2013 1 次提交
  15. 19 12月, 2012 3 次提交
  16. 15 11月, 2012 1 次提交
    • G
      vmdk: Fix data corruption bug in WRITE and READ handling · b1649fae
      Gerhard Wiesinger 提交于
      Fixed a MAJOR BUG in VMDK files on file boundaries on reads
      and ALSO ON WRITES WHICH MIGHT CORRUPT THE IMAGE AND DATA!!!!!!
      
      Triggered for example with the following VMDK file (partly listed):
      RW 4193792 FLAT "XP-W1-f001.vmdk" 0
      RW 2097664 FLAT "XP-W1-f002.vmdk" 0
      RW 4193792 FLAT "XP-W1-f003.vmdk" 0
      RW 512 FLAT "XP-W1-f004.vmdk" 0
      RW 4193792 FLAT "XP-W1-f005.vmdk" 0
      RW 2097664 FLAT "XP-W1-f006.vmdk" 0
      RW 4193792 FLAT "XP-W1-f007.vmdk" 0
      RW 512 FLAT "XP-W1-f008.vmdk" 0
      
      Patch includes:
      1.) Patch fixes wrong calculation on extent boundaries. Especially it
      fixes the relativeness of the sector number to the current extent.
      
      Verfied correctness with:
      1.) Converted either with Virtualbox to VDI and then with qemu-img and
          then with qemu-img only:
      
          VBoxManage clonehd --format vdi /VM/XP-W/new/XP-W1.vmdk ~/.VirtualBox/Harddisks/XP-W1-new-test.vdi
          ./qemu-img convert -O raw ~/.VirtualBox/Harddisks/XP-W1-new-test.vdi /root/QEMU/VM-XP-W1/XP-W1-via-VBOX.img
          md5sum /root/QEMU/VM-XP-W/XP-W1-direct.img
          md5sum /root/QEMU/VM-XP-W/XP-W1-via-VBOX.img
          => same MD5 hash
      
      2.) Verified debug log files
      3.) Run Windows XP successfully
      4.) chkdsk run successfully without any errors
      Signed-off-by: NGerhard Wiesinger <lists@wiesinger.com>
      Acked-by: NFam Zheng <famcool@gmail.com>
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      b1649fae
  17. 05 10月, 2012 1 次提交
  18. 24 9月, 2012 1 次提交
  19. 17 8月, 2012 1 次提交