diff options
author | Jason Dillaman <dillaman@redhat.com> | 2020-11-18 23:55:00 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-18 23:55:00 +0100 |
commit | be72ffdfeca08f2f66e0361040ccfed2eab78399 (patch) | |
tree | 04a1b934aa06a785dcfcadcf75d8fc9e33c3c584 /src/test/librbd/crypto | |
parent | Merge pull request #38133 from zdover23/wip-doc-dev-unit-tests-1-of-7 (diff) | |
parent | librbd: add crypto image dispatch layer (diff) | |
download | ceph-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.cc | 6 |
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 { |