]> git.ipfire.org Git - thirdparty/qemu.git/commit
block: Evaluate @exact in protocol drivers
authorMax Reitz <mreitz@redhat.com>
Wed, 18 Sep 2019 09:51:41 +0000 (11:51 +0200)
committerMax Reitz <mreitz@redhat.com>
Mon, 28 Oct 2019 11:05:24 +0000 (12:05 +0100)
commit82325ae5f2f86ad696db3d66563a078daabc9769
tree6d767f100da50b850abcf17357dbc6da3f419827
parentc80d8b06cfa59f5d8229379c85dcb2c3bb9c881b
block: Evaluate @exact in protocol drivers

We have two protocol drivers that return success when trying to shrink a
block device even though they cannot shrink it.  This behavior is now
only allowed with exact=false, so they should return an error with
exact=true.

Signed-off-by: Max Reitz <mreitz@redhat.com>
Message-id: 20190918095144.955-6-mreitz@redhat.com
Reviewed-by: Maxim Levitsky <mlevitsk@redhat.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
block/file-posix.c
block/iscsi.c