]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd: crypto format api semantics change 40002/head
authorOr Ozeri <oro@il.ibm.com>
Tue, 9 Mar 2021 20:14:49 +0000 (22:14 +0200)
committerOr Ozeri <oro@il.ibm.com>
Mon, 15 Mar 2021 04:12:01 +0000 (06:12 +0200)
commitbb8c66772abaa5890f4caa23bda0eb2ad3279221
tree36044d37cba28f47772c3c75cdc423c8eef62c46
parent894b08ae98a9f8b90fad685ed0455fae640bc159
librbd: crypto format api semantics change

This commit alters the semantics of the encryption format api
to also load the encryption after format completes.
Additionally, several other small changes in librbd crypto are included,
in preparation of supporting clone formatting.

Signed-off-by: Or Ozeri <oro@il.ibm.com>
38 files changed:
src/include/rbd/librbd.h
src/librbd/CMakeLists.txt
src/librbd/ImageCtx.h
src/librbd/api/Image.cc
src/librbd/crypto/BlockCrypto.h
src/librbd/crypto/CryptoContextPool.h
src/librbd/crypto/CryptoInterface.h
src/librbd/crypto/DataCryptor.h
src/librbd/crypto/EncryptionFormat.h
src/librbd/crypto/FormatRequest.cc
src/librbd/crypto/FormatRequest.h
src/librbd/crypto/LoadRequest.cc
src/librbd/crypto/LoadRequest.h
src/librbd/crypto/ShutDownCryptoRequest.cc [new file with mode: 0644]
src/librbd/crypto/ShutDownCryptoRequest.h [new file with mode: 0644]
src/librbd/crypto/Utils.cc [new file with mode: 0644]
src/librbd/crypto/Utils.h [new file with mode: 0644]
src/librbd/crypto/luks/EncryptionFormat.cc
src/librbd/crypto/luks/EncryptionFormat.h
src/librbd/crypto/luks/FormatRequest.cc
src/librbd/crypto/luks/FormatRequest.h
src/librbd/crypto/luks/Header.cc
src/librbd/crypto/luks/Header.h
src/librbd/crypto/luks/LoadRequest.cc
src/librbd/crypto/openssl/DataCryptor.cc
src/librbd/crypto/openssl/DataCryptor.h
src/librbd/migration/S3Stream.cc
src/test/librbd/CMakeLists.txt
src/test/librbd/crypto/luks/test_mock_FormatRequest.cc
src/test/librbd/crypto/luks/test_mock_LoadRequest.cc
src/test/librbd/crypto/test_mock_FormatRequest.cc
src/test/librbd/crypto/test_mock_LoadRequest.cc
src/test/librbd/crypto/test_mock_ShutDownCryptoRequest.cc [new file with mode: 0644]
src/test/librbd/mock/MockImageCtx.h
src/test/librbd/mock/crypto/MockCryptoInterface.h
src/test/librbd/mock/crypto/MockDataCryptor.h
src/test/librbd/mock/crypto/MockEncryptionFormat.h
src/test/librbd/test_librbd.cc