Ver código fonte

Use genfile instead of dd

Sergey Poznyakoff 21 anos atrás
pai
commit
4cb8697f60
2 arquivos alterados com 2 adições e 2 exclusões
  1. 1 1
      tests/listed01.sh
  2. 1 1
      tests/multiv01.sh

+ 1 - 1
tests/listed01.sh

@@ -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
 

+ 1 - 1
tests/multiv01.sh

@@ -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 \