copy: do not treat unwritten extents specially: avoid XFS/ext4 data loss
authorJim Meyering <meyering@redhat.com>
Wed, 20 Apr 2011 08:15:15 +0000 (10:15 +0200)
committerJim Meyering <meyering@redhat.com>
Wed, 20 Apr 2011 16:48:38 +0000 (18:48 +0200)
commitbef4fa1e1a20c636979db159647a93e5954bc542
treee2a61c2d1044124747b71f80a5ad628c24c5e3f2
parent9bcd045f812a75cf96ba392bc45529422f87c088
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.
src/copy.c
tests/cp/fiemap-empty