]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
librbd/migration: make ImageDispatch handle encryption for non-native formats
authorIlya Dryomov <idryomov@gmail.com>
Fri, 2 Aug 2024 07:27:42 +0000 (09:27 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Sat, 10 Aug 2024 21:12:51 +0000 (23:12 +0200)
commit8bd3063197d21d145bd417b5d2074e2fe322eb3e
tree8db92ba3ccc3e88615e1444860b613c7f2362038
parent950253ef90686b40e2ba691d9516ecb5ba5700f3
librbd/migration: make ImageDispatch handle encryption for non-native formats

With NativeFormat now being handled via dispatch, handling encryption
for non-native formats (i.e. mapping to raw image extents and performing
decryption/mapping back on completion) in the migration layer is really
straightforward.

Note that alignment doesn't need to be performed in the migration layer
because it happens on the destination image -- the "align and resubmit"
logic in C_UnalignedObjectReadRequest should kick in before the call to
read_parent().

Fixes: https://tracker.ceph.com/issues/53674
Co-authored-by: Or Ozeri <oro@il.ibm.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
(cherry picked from commit 0000c3447407772039121bb4499f243df1c889da)
qa/workunits/rbd/luks-encryption.sh
src/librbd/migration/ImageDispatch.cc
src/librbd/migration/OpenSourceImageRequest.cc