summaryrefslogtreecommitdiffstats
path: root/tests/basic/ec/ec-common
diff options
context:
space:
mode:
Diffstat (limited to 'tests/basic/ec/ec-common')
-rw-r--r--tests/basic/ec/ec-common4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/basic/ec/ec-common b/tests/basic/ec/ec-common
index c12b6b2c8f3..92e6499fa87 100644
--- a/tests/basic/ec/ec-common
+++ b/tests/basic/ec/ec-common
@@ -2,10 +2,12 @@ SIZE_LIST="1048576 1000 12345 0"
LAST_BRICK=$(($DISPERSE - 1))
+CHUNK_SIZE=512
+
function fragment_size
{
local fragments=$(($DISPERSE - $REDUNDANCY))
- local block_size=$((128 * $fragments))
+ local block_size=$(($CHUNK_SIZE * $fragments))
local size=$(($1 + $block_size - 1))
echo $((( $size - ( $size ) % $block_size ) / $fragments))