block: Add BDRV_REQ_WRITE_UNCHANGED flag
commitc6035964f8316b504060618d05b5dd434f18595b
authorMax Reitz <mreitz@redhat.com>
Sat, 21 Apr 2018 13:29:23 +0000 (21 15:29 +0200)
committerMax Reitz <mreitz@redhat.com>
Tue, 15 May 2018 14:15:21 +0000 (15 16:15 +0200)
treed6b2279cf0ce77c58d2d41cb1014d265c1380c3d
parent24b7c538fea86b598e2a335f4805a0ab50a30e98
block: Add BDRV_REQ_WRITE_UNCHANGED flag

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 <mreitz@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Alberto Garcia <berto@igalia.com>
Message-id: 20180421132929.21610-4-mreitz@redhat.com
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
block/io.c
include/block/block.h