]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd/migration: make ImageDispatch handle encryption for non-native formats 59151/head
authorIlya Dryomov <idryomov@gmail.com>
Fri, 2 Aug 2024 07:27:42 +0000 (09:27 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Sun, 11 Aug 2024 17:23:18 +0000 (19:23 +0200)
commitf0b67893f93c1ecf50c2c56893beac1c4a564055
treec20f7c72f9fe32d767d8e792dc7b5ae85018a6df
parent958668a121cb4bf9e9e66dea4e5c1a1a52e14377
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)

Conflicts:
src/librbd/migration/ImageDispatch.cc [ commit 20aee5bbbcb5
  ("neorados: Make IOContext getters/setters less weird") not
  in reef ]
qa/workunits/rbd/luks-encryption.sh
src/librbd/migration/ImageDispatch.cc
src/librbd/migration/OpenSourceImageRequest.cc