]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd: add LUKS support 37875/head
authorOr Ozeri <oro@il.ibm.com>
Wed, 28 Oct 2020 12:22:06 +0000 (14:22 +0200)
committerJason Dillaman <dillaman@redhat.com>
Mon, 23 Nov 2020 15:32:14 +0000 (10:32 -0500)
commitea3c1bfb9ef2edcdf572df0cb143c463b7551905
tree9017983b4b07c34df069bc1d971596785eba961d
parentd3cf17da156ba2e6ffce15d2ee0c9161d42739d4
librbd: add LUKS support

This commit introduces internal (not yet part of the api) librbd functions for:
1. formating an RBD image in LUKS format
2. parsing an RBD image in LUKS format

 The actual implementation of the LUKS format is done via libcryptsetup, which is added as a new dependency.

Signed-off-by: Or Ozeri <oro@il.ibm.com>
25 files changed:
CMakeLists.txt
ceph.spec.in
cmake/modules/Findlibcryptsetup.cmake [new file with mode: 0644]
debian/control
src/include/config-h.in.cmake
src/librbd/CMakeLists.txt
src/librbd/crypto/BlockCrypto.cc
src/librbd/crypto/BlockCrypto.h
src/librbd/crypto/CryptoInterface.h
src/librbd/crypto/Types.h
src/librbd/crypto/luks/FormatRequest.cc [new file with mode: 0644]
src/librbd/crypto/luks/FormatRequest.h [new file with mode: 0644]
src/librbd/crypto/luks/Header.cc [new file with mode: 0644]
src/librbd/crypto/luks/Header.h [new file with mode: 0644]
src/librbd/crypto/luks/LoadRequest.cc [new file with mode: 0644]
src/librbd/crypto/luks/LoadRequest.h [new file with mode: 0644]
src/librbd/io/Dispatcher.h
src/librbd/io/DispatcherInterface.h
src/test/librbd/CMakeLists.txt
src/test/librbd/crypto/luks/test_mock_FormatRequest.cc [new file with mode: 0644]
src/test/librbd/crypto/luks/test_mock_LoadRequest.cc [new file with mode: 0644]
src/test/librbd/crypto/test_mock_BlockCrypto.cc
src/test/librbd/mock/crypto/MockCryptoInterface.h
src/test/librbd/mock/io/MockImageDispatcher.h
src/test/librbd/mock/io/MockObjectDispatcher.h