]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
qa/workunits/rbd: fixups for the new krbd discard behavior 27905/head
authorIlya Dryomov <idryomov@gmail.com>
Mon, 25 Mar 2019 19:58:00 +0000 (20:58 +0100)
committerNathan Cutler <ncutler@suse.com>
Wed, 1 May 2019 15:23:59 +0000 (17:23 +0200)
commit5fd6e1945aeed64170c5c8d3c86794a2d08840ff
treeaec52375b715bf1bb574e4d65ab70f59ac9df5fd
parent1073d4d5dda85a2f69aa618b77028663a8593c0f
qa/workunits/rbd: fixups for the new krbd discard behavior

With discard_granularity set to alloc_size, we no longer get object
size alignment from blk_bio_discard_split().

This assumption is pretty deeply ingrained in krbd_data_pool.sh, so
make it explicit.  For krbd_fallocate.sh, just fix the expectation.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
(cherry picked from commit f3f757aaa39c73615749926f6503c2e83ca7f0d1)

Conflicts:
qa/workunits/rbd/krbd_fallocate.sh
- luminous does not have a7d89c07946f89ad28987d65d9ba71c464c32431
  so we keep the function name "assert_deallocated_unaligned"
qa/workunits/rbd/krbd_data_pool.sh
qa/workunits/rbd/krbd_fallocate.sh