mirror of
https://github.com/ceph/ceph
synced 2025-03-25 11:48:05 +00:00
Merge pull request #1987 from dachary/wip-8622-rados-alignment
erasure-code: verify that rados put enforces alignment Reviewed-by: Lluis Pamies-Juarez <lluis@pamies.cat>
This commit is contained in:
commit
15f03388b9
@ -60,6 +60,18 @@ function TEST_rados_put() {
|
||||
diff $dir/ORIGINAL $dir/COPY || return 1
|
||||
|
||||
rm $dir/ORIGINAL $dir/COPY
|
||||
|
||||
#
|
||||
# Verify that the rados command enforces alignment constraints
|
||||
# imposed by the stripe width
|
||||
# See http://tracker.ceph.com/issues/8622
|
||||
#
|
||||
local stripe_width=$(./ceph-conf --show-config-value osd_pool_erasure_code_stripe_width)
|
||||
local block_size=$((stripe_width - 1))
|
||||
dd if=/dev/zero of=$dir/ORIGINAL bs=$block_size count=2
|
||||
./rados --block-size=$block_size \
|
||||
--pool ecpool put UNALIGNED $dir/ORIGINAL || return 1
|
||||
rm $dir/ORIGINAL
|
||||
}
|
||||
|
||||
main test-erasure-code
|
||||
|
Loading…
Reference in New Issue
Block a user