1. 03 12月, 2013 2 次提交
  2. 30 11月, 2013 2 次提交
  3. 28 11月, 2013 1 次提交
  4. 31 10月, 2013 1 次提交
  5. 18 10月, 2013 2 次提交
  6. 11 10月, 2013 3 次提交
  7. 25 9月, 2013 1 次提交
    • F
      vmdk: fix cluster size check for flat extents · 301c7d38
      Fam Zheng 提交于
      We use the extent size as cluster size for flat extents (where no L1/L2
      table is allocated so it's safe) reuse sector calculating code with
      sparse extents.
      
      Don't pass in the cluster size for adding flat extent, just set it to
      sectors later, then the cluster size checking will not fail.
      
      The cluster_sectors is changed to int64_t to allow big flat extent.
      
      Without this, flat extent opening is broken:
      
          # qemu-img create -f vmdk -o subformat=monolithicFlat /tmp/a.vmdk 100G
          Formatting '/tmp/a.vmdk', fmt=vmdk size=107374182400 compat6=off subformat='monolithicFlat' zeroed_grain=off
          # qemu-img info /tmp/a.vmdk
          image: /tmp/a.vmdk
          file format: raw
          virtual size: 0 (0 bytes)
          disk size: 4.0K
      Signed-off-by: NFam Zheng <famz@redhat.com>
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      301c7d38
  8. 12 9月, 2013 3 次提交
  9. 06 9月, 2013 3 次提交
  10. 22 8月, 2013 4 次提交
  11. 06 8月, 2013 7 次提交
  12. 02 8月, 2013 1 次提交
  13. 05 7月, 2013 1 次提交
  14. 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
  15. 24 6月, 2013 1 次提交
  16. 17 6月, 2013 2 次提交
  17. 03 5月, 2013 5 次提交