On 27.05.2016 20:45, Stefan Hajnoczi wrote:
On Sat, May 14, 2016 at 03:45:52PM +0300, Denis V. Lunev wrote:
+qemu_co_mutex_lock(>lock);
+cluster_offset = get_cluster_offset(bs, sector_num << 9, 2, out_len, 0, 0);
+qemu_co_mutex_unlock(>lock);
+if (cluster_offset == 0) {
+
On Sat, May 14, 2016 at 03:45:52PM +0300, Denis V. Lunev wrote:
> +qemu_co_mutex_lock(>lock);
> +cluster_offset = get_cluster_offset(bs, sector_num << 9, 2, out_len, 0,
> 0);
> +qemu_co_mutex_unlock(>lock);
> +if (cluster_offset == 0) {
> +ret = -EIO;
> +goto fail;
From: Pavel Butsykin
Added implementation of the qcow_co_write_compressed function that
will allow us to safely use compressed writes for the qcow from running
VMs.
Signed-off-by: Pavel Butsykin
Signed-off-by: Denis V. Lunev