]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
librbd: remove cmp&write sector size restriction
authorJonas Pfefferle <pepperjo@japf.ch>
Fri, 5 Aug 2022 17:36:36 +0000 (19:36 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Fri, 12 Aug 2022 11:57:54 +0000 (13:57 +0200)
commitd80cff0dd665d660cd545c5a66d265b6bf732c73
treecbcee8604cd56c83545a8f9144e9c3b545399f9a
parent3eb7ac6aeb3d11911bcf1c393ddee8913414bef7
librbd: remove cmp&write sector size restriction

This patch removes the compare and write max sector size len
restriction. We can allow up to stripe unit size accesses if
the access is aligned properly.
To allow larger size compare and write requests in the
journal we split the buffers like we do for writes now.

Signed-off-by: Jonas Pfefferle <pepperjo@japf.ch>
src/librbd/Journal.cc
src/librbd/Journal.h
src/librbd/io/ImageRequest.cc
src/test/librbd/io/test_mock_ImageRequest.cc
src/test/librbd/test_mock_Journal.cc