If the "BlockDriver" is "bdrv_vmdk", the function "vmdk_co_write" will be
called instead. In function "vmdk_write_extent" I see "ret =
bdrv_pwrite(extent->file, write_offset, write_buf, write_len);". So the
"extend->file" is "bdrv_file", is it?
Thanks.
Guangmu Zhu
---
Correct a mistake:
So though the "count" would be "-EINVAL" if error occurred while writing some
file, the return value will always be zero. Maybe I missed something?
Sorry.
Guangmu Zhu
-
Thanks for your reply.
I read the source code again and
Thanks for your reply.
I read the source code again and have some question:
1. qume-img wrote the target file in the function "bdrv_aligned_pwritev" which
called the "drv->bdrv_co_writev" function. I haven't know how the qume-img
found the right driver for "drv", but I guessed it's "BlockDriv
Am 23.09.2015 um 13:30 hat Guangmu Zhu geschrieben:
> If the "BlockDriver" is "bdrv_vmdk", the function "vmdk_co_write" will be
> called instead. In function "vmdk_write_extent" I see "ret = bdrv_pwrite
> (extent->file, write_offset, write_buf, write_len);". So the "extend->file" is
> "bdrv_file",