]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd: support preprocessing parent data prior to copyup
authorJason Dillaman <dillaman@redhat.com>
Thu, 24 Sep 2020 19:15:23 +0000 (15:15 -0400)
committerJason Dillaman <dillaman@redhat.com>
Tue, 13 Oct 2020 12:40:29 +0000 (08:40 -0400)
commit0b53cdf93a33c78398b64b9a72f2640d00700217
tree6f076f46a5a83bb48d969d55dc953ee143bce2d4
parent60593e0fa1fdd11db6a7183a4799010de96a8b7b
librbd: support preprocessing parent data prior to copyup

Let object dispatch layers potentially mutate the copyup data read
from the parent prior to issuing the actual copyup operation. This
can allow for a layer like the crypto layer to re-encrypt the parent
image data using the child image's encryption keys, for example.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/librbd/io/CopyupRequest.cc
src/librbd/io/CopyupRequest.h
src/test/librbd/io/test_mock_CopyupRequest.cc