block/rbd: workaround for ceph issue #53784
commitfc176116cdea816ceb8dd969080b2b95f58edbc0
authorPeter Lieven <pl@kamp.de>
Thu, 13 Jan 2022 14:44:26 +0000 (13 15:44 +0100)
committerKevin Wolf <kwolf@redhat.com>
Tue, 1 Feb 2022 14:16:32 +0000 (1 15:16 +0100)
tree6c479ba5658d06a537c35952fab33425bb86e537
parent9e302f64bb407a9bb097b626da97228c2654cfee
block/rbd: workaround for ceph issue #53784

librbd had a bug until early 2022 that affected all versions of ceph that
supported fast-diff. This bug results in reporting of incorrect offsets
if the offset parameter to rbd_diff_iterate2 is not object aligned.

This patch works around this bug for pre Quincy versions of librbd.

Fixes: 0347a8fd4c3faaedf119be04c197804be40a384b
Cc: qemu-stable@nongnu.org
Signed-off-by: Peter Lieven <pl@kamp.de>
Message-Id: <20220113144426.4036493-3-pl@kamp.de>
Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
Tested-by: Stefano Garzarella <sgarzare@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/rbd.c