]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
test/pybind/rbd: fix read offset in write zeroes tests 62130/head
authorIlya Dryomov <idryomov@gmail.com>
Mon, 3 Mar 2025 16:59:35 +0000 (17:59 +0100)
committerIlya Dryomov <idryomov@gmail.com>
Wed, 5 Mar 2025 12:55:58 +0000 (13:55 +0100)
commit620e7e155916a0246399b10b56e5f004e3145be8
tree3303f5448078363dd5abdf8b6d449c61354683a5
parent67ebbb66ca7ce7cbc7411ee7974b69a47e8c6559
test/pybind/rbd: fix read offset in write zeroes tests

Random data is written and write zeroes is invoked on 0~256, but the
read is done on 256~256.  This means that if write zeroes malfunctions
the test wouldn't catch it (especially in the thick provision case).

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
(cherry picked from commit d41f0fa01f59a8d056dc28934b92212c78a05a62)
src/test/pybind/test_rbd.py