[lvm-devel] LVM2/test test-utils.sh

zkabelac at sourceware.org zkabelac at sourceware.org
Mon Aug 2 13:18:42 UTC 2010


CVSROOT:	/cvs/lvm2
Module name:	LVM2
Changes by:	zkabelac at sourceware.org	2010-08-02 13:18:42

Modified files:
	test           : test-utils.sh 

Log message:
	Using count=0 is sufficient for creation of zeroed files.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/test/test-utils.sh.diff?cvsroot=lvm2&r1=1.46&r2=1.47

--- LVM2/test/test-utils.sh	2010/05/24 17:19:50	1.46
+++ LVM2/test/test-utils.sh	2010/08/02 13:18:42	1.47
@@ -186,7 +186,7 @@
 	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




More information about the lvm-devel mailing list