Chunk size copied from sysfs should be divied by 1024 to compare with expected chunk size. Signed-off-by: Michal Zylowski <michal.zylowski@xxxxxxxxx> --- tests/env-imsm-template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/env-imsm-template b/tests/env-imsm-template index ea45bae..40479b4 100644 --- a/tests/env-imsm-template +++ b/tests/env-imsm-template @@ -30,7 +30,7 @@ imsm_check() { fi _chunk=`cat ${sysfs}/md/chunk_size` if [ $t_chunk -ne $((_chunk/1024)) ]; then - echo "**Error**: Chunk size mismatch - expected $t_chunk, actual $_chunk" >&2 + echo "**Error**: Chunk size mismatch - expected $t_chunk, actual $(($_chunk/1024))" >&2 err=$((err + 1)) fi for i in `seq 0 $((t_num_disks - 1))`; do -- 2.7.4 -- To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html