Whamcloud - gitweb
Create sparse files unless using one of the gzipped sizes. Waiting for
authorpschwan <pschwan>
Mon, 29 Apr 2002 22:20:00 +0000 (22:20 +0000)
committerpschwan <pschwan>
Mon, 29 Apr 2002 22:20:00 +0000 (22:20 +0000)
6GB dd runs has lost all appeal.

lustre/tests/common.sh

index 0ab797f..4bf1505 100644 (file)
@@ -67,8 +67,8 @@ new_fs () {
                        zcat "$EFILE" > $2 || exit -1
                        sync
                else
-                       echo "creating new filesystem on $2"
-                       dd if=/dev/zero of=$2 bs=1k count=$3 1>&2 || exit -1
+                       echo "creating new sparse filesystem on $2"
+                       dd if=/dev/zero of=$2 bs=1k seek=$3 count=1 1>&2 || exit -1
                        $MKFS $MKFSOPT -F $2 1>&2 || exit -1
                fi
                LOOPDEV=`next_loop_dev`