On Mon, Mar 27, 2017 at 05:38:08PM +0300, Denis V. Lunev wrote: > Parallels driver should not call bdrv_truncate if the image was opened > in the read-only mode. Without the patch > qemu-img check harddisk.hds > asserts with > bdrv_truncate: Assertion `child->perm & BLK_PERM_RESIZE' failed. > > Parameters used on the write path are not needed if the image is opened > in the read-only mode. > > Signed-off-by: Denis V. Lunev > Reported-by: Edgar Kaziahmedov > CC: Stefan Hajnoczi > --- > block/parallels.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) Thanks, applied to my block tree: https://github.com/stefanha/qemu/commits/block Stefan