diff options
Diffstat (limited to 'src/test/librbd/crypto/test_mock_CryptoObjectDispatch.cc')
-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 { |