]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Detect sparse files on NTFS under cygwin.
authorJim Meyering <jim@meyering.net>
Wed, 2 Feb 2005 08:30:08 +0000 (08:30 +0000)
committerJim Meyering <jim@meyering.net>
Wed, 2 Feb 2005 08:30:08 +0000 (08:30 +0000)
tests/du/8gb

index 6ca790914cefe6c9edd0e4e8a35aea9be27035cf..3557a009e9cfd1273169ffdeaaf65d52860f661f 100755 (executable)
@@ -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