From 380cd989ac7b1c369360a907e51086a97af0b031 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Mon, 2 Aug 2010 13:18:42 +0000 Subject: [PATCH] Using count=0 is sufficient for creation of zeroed files. --- test/test-utils.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.43.5