From 5446b32584617c1315ba17a588e40e06af4b2605 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Wed, 2 Feb 2005 08:30:08 +0000 Subject: Detect sparse files on NTFS under cygwin. --- tests/du/8gb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/du/8gb') diff --git a/tests/du/8gb b/tests/du/8gb index 6ca790914..3557a009e 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 -- cgit v1.2.3-54-g00ecf