]> Dogcows Code - chaz/tar/commitdiff
Use genfile instead of dd
authorSergey Poznyakoff <gray@gnu.org.ua>
Mon, 22 Mar 2004 09:17:48 +0000 (09:17 +0000)
committerSergey Poznyakoff <gray@gnu.org.ua>
Mon, 22 Mar 2004 09:17:48 +0000 (09:17 +0000)
tests/listed01.sh
tests/multiv01.sh

index 8d16b5892fde371c8cced9762cdc4bc6c5429f42..df018987d53c4d8c39db39bcb6adddc2d246b76a 100755 (executable)
@@ -26,7 +26,7 @@ TAR_ARCHIVE_FORMATS="gnu oldgnu"
 . $srcdir/before
 
 mkdir directory
-dd if=/dev/zero of=directory/file1 bs=1024 count=10 2>/dev/null
+genfile --length 10240 --pattern zeros > directory/file1
 # Let the things settle
 sleep 1
 
index 9f3bf6c9a721a4148f28d5accd26bafd35ead001..58682cef7f79790fbdd524ecf7d71359ad776897 100755 (executable)
@@ -10,7 +10,7 @@ TAR_ARCHIVE_FORMATS="gnu oldgnu"
 #  TRUSS=strace
 set -e
 
-dd if=/dev/zero bs=1024 count=7 2>/dev/null >file1
+genfile --length 7168 > file1
 
 for block in " 1" " 2" " 3" " 4" " 5" " 6" " 7" " 8" \
               " 9" "10" "11" "12" "13" "14" "15" "16" ; do \
This page took 0.022847 seconds and 4 git commands to generate.