<feed xmlns='http://www.w3.org/2005/Atom'>
<title>coreutils/tests/sparse-file, branch v6.2</title>
<subtitle>Mirror of https://https.git.savannah.gnu.org/git/coreutils.git/
</subtitle>
<id>https://git.shady.money/coreutils/atom?h=v6.2</id>
<link rel='self' href='https://git.shady.money/coreutils/atom?h=v6.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/'/>
<updated>2006-08-19T14:01:29Z</updated>
<entry>
<title>* NEWS: Fix cp --sparse so that it preserves tail-end sparseness, even</title>
<updated>2006-08-19T14:01:29Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2006-08-19T14:01:29Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=b35bd50ce62fbb98984560177198b94a7de46d00'/>
<id>urn:sha1:b35bd50ce62fbb98984560177198b94a7de46d00</id>
<content type='text'>
when the file's apparent size is not a multiple of its block size.
* src/copy.c (copy_reg): Don't write a NUL before calling ftruncate.
For some file sizes, writing that single byte would unnecessarily
waste a few file blocks.  That write may have been necessary in the
early days of Linux, but now, removing it should be safe.
Based on a patch by Alan Curry: &lt;http://bugs.debian.org/370792&gt;
* tests/cp/sparse: New test for the above.
* tests/cp/Makefile.am (TESTS): Add sparse.

* tests/sparse-file: New file, essence factored out of...
* tests/du/8gb: ... here.  Use the new script.
</content>
</entry>
</feed>
