Re: [Qemu-devel] [PATCH v2] vmdk: Allow vmdk_create to work with protocol

2013-12-20 Thread Peter Lieven
On 20.12.2013 02:48, Fam Zheng wrote: This improves vmdk_create to use bdrv_* functions to replace qemu_open and other fd functions. The error handling are improved as well. One difference is that bdrv_pwrite will round up buffer to sectors, so for description file, an extra bdrv_truncate is used

Re: [Qemu-devel] [PATCH v2] vmdk: Allow vmdk_create to work with protocol

2013-12-20 Thread Stefan Hajnoczi
On Fri, Dec 20, 2013 at 09:48:48AM +0800, Fam Zheng wrote: > This improves vmdk_create to use bdrv_* functions to replace qemu_open > and other fd functions. The error handling are improved as well. One > difference is that bdrv_pwrite will round up buffer to sectors, so for > description file, an

[Qemu-devel] [PATCH v2] vmdk: Allow vmdk_create to work with protocol

2013-12-19 Thread Fam Zheng
This improves vmdk_create to use bdrv_* functions to replace qemu_open and other fd functions. The error handling are improved as well. One difference is that bdrv_pwrite will round up buffer to sectors, so for description file, an extra bdrv_truncate is used in the end to drop inding zeros. Notes