]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
librbd/cache/pwl: adjust compare-and-write compare substringing
authorIlya Dryomov <idryomov@gmail.com>
Mon, 15 Aug 2022 07:44:09 +0000 (09:44 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 15 Aug 2022 07:44:09 +0000 (09:44 +0200)
commit35f3ccb68714f18cc1ff78278fdd5216590cc9bf
tree063ccc049be85950aea1945eeede63089f46ccdb
parentec0fc71cdb579e31ff4e599c43f3918322e70ddf
librbd/cache/pwl: adjust compare-and-write compare substringing

cmp_bl can no longer be shorter than read_bl (i.e. image extent).
This is caught very early at the API level, see commit af96e6dae3f4
("librbd: make C++ cmp&write semantics equal to C API").

However, cmp_bl can still be longer than read_bl and in that case
it should be capped by the image extent length.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
src/librbd/cache/pwl/AbstractWriteLog.cc