mirror of https://github.com/ceph/ceph
f47e953420
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> |
||
---|---|---|
.. | ||
common.sh | ||
krbd_blkroset.t | ||
krbd_deep_flatten.t | ||
krbd_discard.t | ||
krbd_discard_4M.t | ||
krbd_discard_512b.t | ||
krbd_discard_granularity.t | ||
krbd_huge_image.t | ||
krbd_msgr_segments.t | ||
krbd_parent_overlap.t | ||
krbd_whole_object_zeroout.t | ||
krbd_zeroout.t | ||
rbd.sh |