]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
erasure-code: tests must use aligned buffers 961/head
authorLoic Dachary <loic@dachary.org>
Tue, 17 Dec 2013 19:26:01 +0000 (20:26 +0100)
committerLoic Dachary <loic@dachary.org>
Tue, 17 Dec 2013 19:26:01 +0000 (20:26 +0100)
commitb1530679a85c82a8ea79d23c3b0d0c11bd4da3c2
tree169f08f13352b9b420745c5441ee26de186cde2c
parent6f431200e393434475200b921f98c76dccde56e2
erasure-code: tests must use aligned buffers

The underlying code assumes the memory buffer is aligned on a long
boundary which is not always the case. Using buffer::create_page_aligned
which calls posix_memalign ensure the allocated buffer starts at an
address that is properly aligned.

Signed-off-by: Loic Dachary <loic@dachary.org>
src/test/osd/TestErasureCodeJerasure.cc