]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
test/crimson/seastore: fix overflow issue and make len > 0 when set_contents is called
authorMyoungwon Oh <myoungwon.oh@samsung.com>
Sun, 17 Dec 2023 09:04:10 +0000 (18:04 +0900)
committerMyoungwon Oh <myoungwon.oh@samsung.com>
Fri, 5 Jan 2024 06:44:37 +0000 (15:44 +0900)
commitcba051d6e0d964ae3bc7337aee942ee91b9c663e
tree94fa8c8d5e312f83b2bf3dbdb6fa692445284d54
parent6d42ff4c7e6d3f2e5b97d3d4e16a4e1b1552af29
test/crimson/seastore: fix overflow issue and make len > 0 when set_contents is called

set_contents causes the overflow at times because
alloc_extent is allowed to use uint32_t.

Specifically, in random_writes case, PADDING_SIZE is 256<<10,
whereas set_contents's len is uint16_t.

Signed-off-by: Myoungwon Oh <myoungwon.oh@samsung.com>
src/test/crimson/seastore/test_block.h