1. 04 11月, 2010 1 次提交
  2. 22 6月, 2010 1 次提交
  3. 03 5月, 2010 4 次提交
    • K
      vmdk: Convert to bdrv_open · 6511ef77
      Kevin Wolf 提交于
      It's a format driver, so implement bdrv_open instead of bdrv_file_open.
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      6511ef77
    • K
      vmdk: Clean up backing file handling · 9949f97e
      Kevin Wolf 提交于
      VMDK is doing interesting things when it needs to open a backing file. This
      patch changes that part to look more like in other drivers. The nice side
      effect is that the file name isn't needed any more in the open function.
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      9949f97e
    • K
      vmdk: Fix COW · c336500d
      Kevin Wolf 提交于
      When trying to do COW, VMDK wrote the data back to the backing file. This
      problem was revealed by the patch that made backing files read-only. This patch
      does not only fix the problem, but also simplifies the VMDK code a bit.
      
      This fixes the backing file qemu-iotests cases for VMDK.
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      c336500d
    • 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
  4. 23 4月, 2010 1 次提交
    • K
      Replace calls of old bdrv_open · d6e9098e
      Kevin Wolf 提交于
      What is known today as bdrv_open2 becomes the new bdrv_open. All remaining
      callers of the old function are converted to the new one. In some places they
      even know the right format, so they should have used bdrv_open2 from the
      beginning.
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      d6e9098e
  5. 10 3月, 2010 4 次提交
  6. 27 1月, 2010 1 次提交
    • K
      block/vmdk.o: fix warnings with _FORTIFY_SOURCE · 1640366c
      Kirill A. Shutemov 提交于
      CC    block/vmdk.o
      cc1: warnings being treated as errors
      block/vmdk.c: In function 'vmdk_snapshot_create':
      block/vmdk.c:236: error: ignoring return value of 'ftruncate', declared with attribute warn_unused_result
      block/vmdk.c: In function 'vmdk_create':
      block/vmdk.c:775: error: ignoring return value of 'write', declared with attribute warn_unused_result
      block/vmdk.c:776: error: ignoring return value of 'write', declared with attribute warn_unused_result
      block/vmdk.c:778: error: ignoring return value of 'ftruncate', declared with attribute warn_unused_result
      block/vmdk.c:784: error: ignoring return value of 'write', declared with attribute warn_unused_result
      block/vmdk.c:790: error: ignoring return value of 'write', declared with attribute warn_unused_result
      block/vmdk.c:807: error: ignoring return value of 'write', declared with attribute warn_unused_result
      make: *** [block/vmdk.o] Error 1
      Signed-off-by: NKirill A. Shutemov <kirill@shutemov.name>
      Signed-off-by: NJuan Quintela <quintela@redhat.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      1640366c
  7. 20 1月, 2010 1 次提交
  8. 22 7月, 2009 1 次提交
    • K
      vmdk: Fix backing file handling · b171271a
      Kevin Wolf 提交于
      Instead of storing the backing file in its own BlockDriverState, VMDK uses the
      BlockDriverState of the raw image file it opened. This is wrong and breaks
      functions that access the backing file or protocols. This fix replaces all
      occurrences of s->hd->backing_* with bs->backing_*.
      
      This fixes qemu-iotests failure in 020 (Commit changes to backing file).
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      b171271a
  9. 06 6月, 2009 1 次提交
  10. 22 5月, 2009 1 次提交
  11. 15 5月, 2009 2 次提交
  12. 08 3月, 2009 1 次提交
  13. 07 3月, 2009 1 次提交
  14. 06 2月, 2009 1 次提交
  15. 28 10月, 2008 1 次提交
  16. 26 10月, 2008 1 次提交
  17. 25 10月, 2008 1 次提交
  18. 29 9月, 2008 1 次提交
  19. 14 9月, 2008 1 次提交
  20. 22 8月, 2008 1 次提交
  21. 17 8月, 2008 1 次提交
  22. 22 5月, 2008 1 次提交
  23. 12 3月, 2008 2 次提交
  24. 14 1月, 2008 1 次提交
  25. 11 11月, 2007 1 次提交
  26. 21 9月, 2007 1 次提交
  27. 17 9月, 2007 3 次提交
  28. 10 9月, 2007 1 次提交
  29. 11 7月, 2007 1 次提交
  30. 18 6月, 2007 1 次提交