]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd/migration: make ImageDispatch handle encryption for non-native formats 44366/head
authorIlya Dryomov <idryomov@gmail.com>
Fri, 2 Aug 2024 07:27:42 +0000 (09:27 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Wed, 7 Aug 2024 10:35:34 +0000 (12:35 +0200)
commit0000c3447407772039121bb4499f243df1c889da
tree2a4f92bab6305972f239d06b7501f1a57787140d
parentb20a897061feabc4e22c339c4e7a8aa5155151e8
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>
qa/workunits/rbd/luks-encryption.sh
src/librbd/migration/ImageDispatch.cc
src/librbd/migration/OpenSourceImageRequest.cc