]> git.ipfire.org Git - thirdparty/qemu.git/commit
sheepdog: Consistently set bdrv_has_zero_init_truncate
authorEric Blake <eblake@redhat.com>
Tue, 24 Mar 2020 17:42:33 +0000 (12:42 -0500)
committerMax Reitz <mreitz@redhat.com>
Thu, 26 Mar 2020 13:44:33 +0000 (14:44 +0100)
commited049910637be991c88cc25c864115bc5b1e4dab
tree1093b65eca9e4ebf89faa095169c2ef5d36399e0
parente7be13ad3ff593608a118bfb69553037bd221563
sheepdog: Consistently set bdrv_has_zero_init_truncate

block_int.h claims that .bdrv_has_zero_init must return 0 if
.bdrv_has_zero_init_truncate does likewise; but this is violated if
only the former callback is provided if .bdrv_co_truncate also exists.
When adding the latter callback, it was mistakenly added to only one
of the three possible sheepdog instantiations.

Fixes: 1dcaf527
Signed-off-by: Eric Blake <eblake@redhat.com>
Message-Id: <20200324174233.1622067-5-eblake@redhat.com>
Reviewed-by: John Snow <jsnow@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
block/sheepdog.c