summaryrefslogtreecommitdiffstats
path: root/src/test/librbd/crypto
diff options
context:
space:
mode:
authorJason Dillaman <dillaman@redhat.com>2020-11-18 23:55:00 +0100
committerGitHub <noreply@github.com>2020-11-18 23:55:00 +0100
commitbe72ffdfeca08f2f66e0361040ccfed2eab78399 (patch)
tree04a1b934aa06a785dcfcadcf75d8fc9e33c3c584 /src/test/librbd/crypto
parentMerge pull request #38133 from zdover23/wip-doc-dev-unit-tests-1-of-7 (diff)
parentlibrbd: add crypto image dispatch layer (diff)
downloadceph-be72ffdfeca08f2f66e0361040ccfed2eab78399.tar.xz
ceph-be72ffdfeca08f2f66e0361040ccfed2eab78399.zip
Merge pull request #37935 from orozery/librbd-image-address-remap
librbd: add crypto image dispatch layer Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Diffstat (limited to 'src/test/librbd/crypto')
-rw-r--r--src/test/librbd/crypto/test_mock_CryptoObjectDispatch.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/test/librbd/crypto/test_mock_CryptoObjectDispatch.cc b/src/test/librbd/crypto/test_mock_CryptoObjectDispatch.cc
index cfcd92e5184..1a0f19e4551 100644
--- a/src/test/librbd/crypto/test_mock_CryptoObjectDispatch.cc
+++ b/src/test/librbd/crypto/test_mock_CryptoObjectDispatch.cc
@@ -55,6 +55,12 @@ CopyupRequest<librbd::MockImageCtx>* CopyupRequest<
namespace util {
+template <> uint64_t get_file_offset(
+ MockImageCtx *image_ctx, uint64_t object_no, uint64_t offset) {
+ return Striper::get_file_offset(image_ctx->cct, &image_ctx->layout,
+ object_no, offset);
+}
+
namespace {
struct Mock {