]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
test/pybind/rbd: fix read offset in write zeroes tests 60844/head
authorIlya Dryomov <idryomov@gmail.com>
Mon, 3 Mar 2025 16:59:35 +0000 (17:59 +0100)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 3 Mar 2025 20:31:07 +0000 (21:31 +0100)
commitd41f0fa01f59a8d056dc28934b92212c78a05a62
tree385ac728df162c1e532d8938ffefa7ef42a42766
parent54f47cc28ffd2d29b4f8cfaf56a5a5be2909bde7
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>
src/test/pybind/test_rbd.py