]> sourceware.org Git - lvm2.git/commitdiff
Using count=0 is sufficient for creation of zeroed files.
authorZdenek Kabelac <zkabelac@redhat.com>
Mon, 2 Aug 2010 13:18:42 +0000 (13:18 +0000)
committerZdenek Kabelac <zkabelac@redhat.com>
Mon, 2 Aug 2010 13:18:42 +0000 (13:18 +0000)
test/test-utils.sh

index 1da7c5fec9b92d1680e6517525ceb984287b76a1..6fb3c6888fa744700909c12c2715ac646c260fff 100644 (file)
@@ -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
This page took 0.03898 seconds and 5 git commands to generate.