]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd: remove remap_to_* and image crypto layer 43804/head
authorOr Ozeri <oro@il.ibm.com>
Thu, 25 Nov 2021 19:03:02 +0000 (21:03 +0200)
committerOr Ozeri <oro@il.ibm.com>
Tue, 5 Sep 2023 12:21:10 +0000 (15:21 +0300)
commit15a2b5c046062f21b2e8a171bca0731c388900b4
tree8bde08858f7febf786a9c0347dcbbed2809df25c
parent6dda3e2b432bf9b55dd0db004b3ea6793333d66f
librbd: remove remap_to_* and image crypto layer

This commit removes the crypto image dispatch layer.
Instead, data offset calculation is taken from ImageCtx->encryption_format.
This change makes the remap_to_* api unnecessary, so it is removed.

Signed-off-by: Or Ozeri <oro@il.ibm.com>
18 files changed:
src/librbd/CMakeLists.txt
src/librbd/ImageCtx.cc
src/librbd/ImageCtx.h
src/librbd/crypto/CryptoImageDispatch.cc [deleted file]
src/librbd/crypto/CryptoImageDispatch.h [deleted file]
src/librbd/crypto/ShutDownCryptoRequest.cc
src/librbd/crypto/ShutDownCryptoRequest.h
src/librbd/crypto/Utils.cc
src/librbd/io/ImageDispatcher.cc
src/librbd/io/ImageDispatcher.h
src/librbd/io/ImageDispatcherInterface.h
src/librbd/io/Types.h
src/librbd/io/Utils.cc
src/test/librbd/crypto/test_mock_CryptoObjectDispatch.cc
src/test/librbd/crypto/test_mock_ShutDownCryptoRequest.cc
src/test/librbd/mock/MockImageCtx.cc
src/test/librbd/mock/MockImageCtx.h
src/test/librbd/mock/io/MockImageDispatcher.h