summary refs log tree commit diff stats
path: root/ui/input-linux.c
diff options
context:
space:
mode:
authorDenis V. Lunev <den@openvz.org>2017-03-27 17:38:08 +0300
committerStefan Hajnoczi <stefanha@redhat.com>2017-03-28 11:06:00 +0100
commitdc62da88b5d17477227a3563a6ad466129d416d6 (patch)
tree122d4e7b7326b2c7a64f6627299da13794346b67 /ui/input-linux.c
parenteb06c9e2d3c8f026a206e8402b0ffa201060ec8e (diff)
downloadfocaccia-qemu-dc62da88b5d17477227a3563a6ad466129d416d6.tar.gz
focaccia-qemu-dc62da88b5d17477227a3563a6ad466129d416d6.zip
parallels: wrong call to bdrv_truncate
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 <den@openvz.org>
Reported-by: Edgar Kaziahmedov <edos@virtuozzo.mipt.ru>
Message-id: 1490625488-7980-1-git-send-email-den@openvz.org
CC: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'ui/input-linux.c')
0 files changed, 0 insertions, 0 deletions