]> git.proxmox.com Git - mirror_qemu.git/commit - block/copy-before-write.c
block/backup-top: fix flags handling
authorVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Fri, 7 Feb 2020 16:12:31 +0000 (19:12 +0300)
committerMax Reitz <mreitz@redhat.com>
Thu, 20 Feb 2020 15:43:42 +0000 (16:43 +0100)
commit4bc267a7c7cf204b05d3d1f01625691540a7b965
treeb2fa6bb875cfc5f59f363d319f1776cbd7fa9374
parent087ab8e775f48766068e65de1bc99d03b40d1670
block/backup-top: fix flags handling

backup-top "supports" write-unchanged, by skipping CBW operation in
backup_top_co_pwritev. But it forgets to do the same in
backup_top_co_pwrite_zeroes, as well as declare support for
BDRV_REQ_WRITE_UNCHANGED.

Fix this, and, while being here, declare also support for flags
supported by source child.

Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Message-Id: <20200207161231.32707-1-vsementsov@virtuozzo.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
block/backup-top.c