From: Jim Meyering Date: Wed, 2 Feb 2005 08:30:08 +0000 (+0000) Subject: Detect sparse files on NTFS under cygwin. X-Git-Tag: CPPI-1_12~1518 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5446b32584617c1315ba17a588e40e06af4b2605;p=thirdparty%2Fcoreutils.git Detect sparse files on NTFS under cygwin. --- diff --git a/tests/du/8gb b/tests/du/8gb index 6ca790914c..3557a009e9 100755 --- a/tests/du/8gb +++ b/tests/du/8gb @@ -26,7 +26,8 @@ fi # If this file system doesn't support sparse files, # don't try to create a file that'd end up consuming 8GB. # This happens on Darwin6.5 with a file system of type `hfs'. -dd bs=1 seek=64K of=t < /dev/null 2> /dev/null +# NTFS requires 128K before a hole appears in a sparse file. +dd bs=1 seek=128K of=t < /dev/null 2> /dev/null set x `du -sk t` if test "$2" = 64; then echo "$0: skipping this test, since this file system doesn't support" 1>&2