#!/bin/sh
# Disabling features we do not match exactly:
-system_mke2fs='/sbin/mke2fs -I 128 -O ^resize_inode'
+system_mke2fs='/sbin/mke2fs -O ^resize_inode'
bbox_mke2fs='./busybox mke2fs'
gen_image() { # params: mke2fs_invocation image_name
kilobytes=60
while true; do
test_mke2fs || exit 1
- : $((kilobytes++))
+ kilobytes=$((kilobytes+1))
test $kilobytes = 200 && break
done
kilobytes=$((1 * 8*1024 - 50))
while true; do
test_mke2fs || exit 1
- : $((kilobytes++))
+ kilobytes=$((kilobytes+1))
test $kilobytes = $((1 * 8*1024 + 300)) && break
done
kilobytes=$((2 * 8*1024 - 50))
while true; do
test_mke2fs || exit 1
- : $((kilobytes++))
+ kilobytes=$((kilobytes+1))
test $kilobytes = $((2 * 8*1024 + 400)) && break
done
kilobytes=$((3 * 8*1024 - 50))
while true; do
test_mke2fs || exit 1
- : $((kilobytes++))
+ kilobytes=$((kilobytes+1))
test $kilobytes = $((3 * 8*1024 + 500)) && break
done
kilobytes=$((4 * 8*1024 - 50))
while true; do
test_mke2fs || exit 1
- : $((kilobytes++))
+ kilobytes=$((kilobytes+1))
test $kilobytes = $((4 * 8*1024 + 600)) && break
done
kilobytes=$((5 * 8*1024 - 50))
while true; do
test_mke2fs || exit 1
- : $((kilobytes++))
+ kilobytes=$((kilobytes+1))
test $kilobytes = $((5 * 8*1024 + 700)) && break
done
exit