]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd: fix crypto prepare_copyup to use new remap_extents api 38182/head
authorOr Ozeri <oro@il.ibm.com>
Thu, 19 Nov 2020 06:26:51 +0000 (08:26 +0200)
committerOr Ozeri <oro@il.ibm.com>
Thu, 19 Nov 2020 08:03:54 +0000 (10:03 +0200)
commitbb987178c1ed4833f4540d819d7203ded18966cf
treed3eddb432e58c4e3f31df8b20b23869efd4bf834
parentf9c6629062ddd5e990d31b953585e0cdd103a154
librbd: fix crypto prepare_copyup to use new remap_extents api

This commit changes the crypto prepare_copyup implementation to correctly
translate object extents to image extents, via the remap_extents api.
Additionally, we fix relevant unit tests that call this api to correctly expect these calls.

Signed-off-by: Or Ozeri <oro@il.ibm.com>
src/librbd/crypto/CryptoObjectDispatch.cc
src/test/librbd/crypto/test_mock_CryptoObjectDispatch.cc