]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
test/pybind/rbd: fix read offset in write zeroes tests 62129/head
authorIlya Dryomov <idryomov@gmail.com>
Mon, 3 Mar 2025 16:59:35 +0000 (17:59 +0100)
committerIlya Dryomov <idryomov@gmail.com>
Fri, 7 Mar 2025 10:57:53 +0000 (11:57 +0100)
commit8d014f171fe00a1aaa371c7fac9a2ac31640f0ab
treea61e79c3a710aaad068d7e50a7d57dc448203421
parentdd64132044e0387f9cdef62b995b88db62f124be
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