diff --git a/test/test-utils.sh b/test/test-utils.sh index 1da7c5fec..6fb3c6888 100644 --- a/test/test-utils.sh +++ b/test/test-utils.sh @@ -186,7 +186,7 @@ prepare_loop() { done LOOPFILE="$PWD/test.img" - dd if=/dev/zero of="$LOOPFILE" bs=$((1024*1024)) count=1 seek=$(($size-1)) + dd if=/dev/zero of="$LOOPFILE" bs=$((1024*1024)) count=0 seek=$(($size-1)) if LOOP=`losetup -s -f "$LOOPFILE" 2>/dev/null`; then return 0 elif LOOP=`losetup -f` && losetup $LOOP "$LOOPFILE"; then