From: Zdenek Kabelac Date: Mon, 2 Aug 2010 13:18:42 +0000 (+0000) Subject: Using count=0 is sufficient for creation of zeroed files. X-Git-Tag: v2_02_91~1638 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=380cd989ac7b1c369360a907e51086a97af0b031;p=lvm2.git Using count=0 is sufficient for creation of zeroed files. --- 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