ceph/qa/rbd
Ilya Dryomov f47e953420 qa: krbd_parent_overlap.t: fix read test
It turns out this test has not been triggering the right code path for
a while now (krbd_parent_overlap.t was added just over a year ago, but
the original test goes back a few years).

To do its job it needs an empty clone with the overlap set to somewhere
in the middle of an object.  The test relied on shrinking for this, but
shrinking no longer fits the bill because a copyup is now performed for
the object with the overlap -- we never go to the parent after that.

Let's size the parent so that it ends in the middle of an object and
then grow an empty clone instead.  Also, while reading from page cache
does seem to trigger a read that straddles the overlap, it's not very
reliable, so supplement it with a direct read.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
2019-08-28 17:07:07 +02:00
..
common.sh
krbd_blkroset.t
krbd_deep_flatten.t
krbd_discard.t
krbd_discard_4M.t
krbd_discard_512b.t
krbd_discard_granularity.t qa: add krbd_discard_granularity.t test 2019-03-19 11:49:19 +01:00
krbd_huge_image.t
krbd_msgr_segments.t
krbd_parent_overlap.t qa: krbd_parent_overlap.t: fix read test 2019-08-28 17:07:07 +02:00
krbd_whole_object_zeroout.t
krbd_zeroout.t
rbd.sh