]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd: add crypto flattening to flattening operation
authorOr Ozeri <oro@il.ibm.com>
Thu, 7 Jul 2022 09:59:02 +0000 (12:59 +0300)
committerOr Ozeri <oro@il.ibm.com>
Thu, 25 Aug 2022 15:41:11 +0000 (18:41 +0300)
commit6e890836a6e73528efe5901780145c3418b3b120
tree8c59baf89b431696c66d661f1f707613d0f7fd3b
parentd03805c6965502fd5213789633951780b3ecc055
librbd: add crypto flattening to flattening operation

This commit enables correct flattening of images where encryption is loaded.
In particular, this means:
1. Flattening the encryption header (which is non addressable when encryption is loaded)
2. Running format-specific flattening operation (i.e. reverting the LUKS magic in the encryption header)
The allow the above 2 operations, we shut-down the crypto layers, and restore them back when these operations end.
The above operations are performed as part of a format-specific handler (LUKSEncryptionFormat::flatten).

Signed-off-by: Or Ozeri <oro@il.ibm.com>
src/librbd/operation/FlattenRequest.cc
src/librbd/operation/FlattenRequest.h