]> Dogcows Code - chaz/tar/blobdiff - tests/sparse01.sh
Use genfile instead of mksparse
[chaz/tar] / tests / sparse01.sh
index 05f7cc6b764d44daee0c86fe713813c2a318d8e0..15a06663aecb15c07cc8efff03cb9223722d2e61 100755 (executable)
@@ -1,7 +1,4 @@
 #! /bin/sh
-
-# Check sparse file handling.
-
 # This file is part of GNU tar testsuite.
 # Copyright (C) 2004 Free Software Foundation, Inc.
 #
 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 # 02111-1307, USA.
 
+# Check sparse file handling.
+
 . ./preset
 TAR_ARCHIVE_FORMATS="gnu oldgnu posix"
 . $srcdir/before
 
 genfile --length 1000 > begin
 genfile --length 1000 > end
-mksparse sparsefile 512 0 ABCD 1M EFGH 2000K IJKL
+genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL
 tar -c -f archive --sparse begin sparsefile end
 echo separator
 
This page took 0.020783 seconds and 4 git commands to generate.