summaryrefslogtreecommitdiff
path: root/tests/du/8gb
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2005-02-02 08:30:08 +0000
committerJim Meyering <jim@meyering.net>2005-02-02 08:30:08 +0000
commit5446b32584617c1315ba17a588e40e06af4b2605 (patch)
tree1b96fae6251e986b865c45c8ad117ae0ea9eeadf /tests/du/8gb
parentae65663064eaf231cb57148d5c542d6646d5e696 (diff)
downloadcoreutils-5446b32584617c1315ba17a588e40e06af4b2605.tar.xz
Detect sparse files on NTFS under cygwin.
Diffstat (limited to 'tests/du/8gb')
-rwxr-xr-xtests/du/8gb3
1 files changed, 2 insertions, 1 deletions
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