]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd: return area from extents_to_file()
authorIlya Dryomov <idryomov@gmail.com>
Mon, 12 Sep 2022 19:05:44 +0000 (21:05 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Sun, 4 Dec 2022 17:19:19 +0000 (18:19 +0100)
commitb2c88820923ef033a31620e7d77f84e7bb695e9d
tree5bae198c6d4d0cbe70941c5169ac43486c9daa98
parent830b9198405ca7efda93ac3d5f1e880c50aa3a49
librbd: return area from extents_to_file()

Note that, as suggested by extents_to_file() signature, all returned
image extents would pertain to the same area.  This means that an area
boundary must coincide with an object boundary.

luks::FormatRequest is actually more strict: crypto header area size is
set to a multiple of stripe period (i.e. one or more whole objects).

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
15 files changed:
src/librbd/cache/ObjectCacherWriteback.cc
src/librbd/crypto/CryptoObjectDispatch.cc
src/librbd/deep_copy/ObjectCopyRequest.cc
src/librbd/deep_copy/ObjectCopyRequest.h
src/librbd/io/CopyupRequest.cc
src/librbd/io/ImageRequest.cc
src/librbd/io/ObjectRequest.cc
src/librbd/io/ObjectRequest.h
src/librbd/io/Utils.cc
src/librbd/io/Utils.h
src/librbd/journal/ObjectDispatch.cc
src/test/librbd/deep_copy/test_mock_ObjectCopyRequest.cc
src/test/librbd/io/test_mock_CopyupRequest.cc
src/test/librbd/io/test_mock_ImageRequest.cc
src/test/librbd/io/test_mock_ObjectRequest.cc