summaryrefslogtreecommitdiff
path: root/tests/cp
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2011-04-20 10:15:15 +0200
committerJim Meyering <meyering@redhat.com>2011-04-20 18:48:38 +0200
commitbef4fa1e1a20c636979db159647a93e5954bc542 (patch)
treee2a61c2d1044124747b71f80a5ad628c24c5e3f2 /tests/cp
parent9bcd045f812a75cf96ba392bc45529422f87c088 (diff)
downloadcoreutils-bef4fa1e1a20c636979db159647a93e5954bc542.tar.xz
copy: do not treat unwritten extents specially: avoid XFS/ext4 data loss
* src/copy.c (extent_copy): Do not treat "unwritten extents" specially. Otherwise, with a release-candidate 2.6.39-rc3 kernel, XFS or ext4, when using gold as your linker, and if you forget to run "make check", you could end up installing files full of zeros instead of the expected binaries. For a lot of discussion, see http://thread.gmane.org/gmane.comp.file-systems.xfs.general/37895 * tests/cp/fiemap-empty: Disable this test.
Diffstat (limited to 'tests/cp')
-rwxr-xr-xtests/cp/fiemap-empty5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/cp/fiemap-empty b/tests/cp/fiemap-empty
index 64c3254c7..836668ef7 100755
--- a/tests/cp/fiemap-empty
+++ b/tests/cp/fiemap-empty
@@ -19,6 +19,11 @@
. "${srcdir=.}/init.sh"; path_prepend_ ../src
print_ver_ cp
+# FIXME: enable any part of this test that is still relevant,
+# or, if none are relevant (now that cp does not handle unwritten
+# extents), just remove the test altogether.
+skip_test_ 'disabled for now'
+
touch fiemap_chk
fiemap_capable_ fiemap_chk ||
skip_test_ 'this file system lacks FIEMAP support'