Re: [Qemu-devel] [PATCH 3/9] block: Add BDRV_REQ_WRITE_UNCHANGED flag

2018-04-20 Thread Stefan Hajnoczi
On Mon, Apr 16, 2018 at 06:58:43PM +0200, Max Reitz wrote: > This flag signifies that a write request will not change the visible > disk content. With this flag set, it is sufficient to have the > BLK_PERM_WRITE_UNCHANGED permission instead of BLK_PERM_WRITE. > > Signed-off-by: Max Reitz

[Qemu-devel] [PATCH 3/9] block: Add BDRV_REQ_WRITE_UNCHANGED flag

2018-04-16 Thread Max Reitz
This flag signifies that a write request will not change the visible disk content. With this flag set, it is sufficient to have the BLK_PERM_WRITE_UNCHANGED permission instead of BLK_PERM_WRITE. Signed-off-by: Max Reitz --- include/block/block.h | 6 +- block/io.c