]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
librbd: pass area to ImageDispatchSpec::create_*()
authorIlya Dryomov <idryomov@gmail.com>
Wed, 14 Sep 2022 10:40:58 +0000 (12:40 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Sun, 4 Dec 2022 17:19:19 +0000 (18:19 +0100)
commitbe286db1f137cc0c4ec2a3f8e873bd4372972e66
tree0b03ec1330a00b1b052b2512930e7d146c86e0f6
parentb2c88820923ef033a31620e7d77f84e7bb695e9d
librbd: pass area to ImageDispatchSpec::create_*()

- DATA area is assumed at the API layer as there is no way to pass
  an area
- DATA area is assumed by ImageWriteback because PWL cache persists
  image extents as provided by the user without any kind of designator
  and therefore can be active only in either area
- luks::FlattenRequest operates on CRYPTO_HEADER area

The passed area is acted upon in ImageDispatchSpec constructor in the
next commit.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
17 files changed:
src/librbd/api/DiffIterate.cc
src/librbd/api/Io.cc
src/librbd/cache/ImageWriteback.cc
src/librbd/crypto/luks/FlattenRequest.cc
src/librbd/crypto/luks/FormatRequest.cc
src/librbd/crypto/luks/LoadRequest.cc
src/librbd/deep_copy/ObjectCopyRequest.cc
src/librbd/internal.cc
src/librbd/io/CopyupRequest.cc
src/librbd/io/CopyupRequest.h
src/librbd/io/ImageDispatchSpec.h
src/librbd/io/ObjectRequest.cc
src/librbd/io/Utils.cc
src/librbd/migration/NativeFormat.cc
src/test/librbd/crypto/test_mock_CryptoObjectDispatch.cc
src/test/librbd/io/test_mock_CopyupRequest.cc
src/test/librbd/io/test_mock_ObjectRequest.cc