<feed xmlns='http://www.w3.org/2005/Atom'>
<title>coreutils/tests/cp, branch v7.5</title>
<subtitle>Mirror of https://https.git.savannah.gnu.org/git/coreutils.git/
</subtitle>
<id>https://git.shady.money/coreutils/atom?h=v7.5</id>
<link rel='self' href='https://git.shady.money/coreutils/atom?h=v7.5'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/'/>
<updated>2009-08-14T15:10:53Z</updated>
<entry>
<title>cp,mv: fix issues with preserving timestamps of copied symlinks</title>
<updated>2009-08-14T15:10:53Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2009-08-13T09:39:10Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=f0a1f0df2295aaed418f201bbec67df120e1ac17'/>
<id>urn:sha1:f0a1f0df2295aaed418f201bbec67df120e1ac17</id>
<content type='text'>
* src/copy.c (copy_internal): On systems without utimensat don't
use utimens on a symlink, as that would dereference the symlink.
* tests/cp/abuse: To work around possible attribute preservation
failures breaking the test, use cp -dR rather than cp -a.
</content>
</entry>
<entry>
<title>tests: raise ulimit virt-mem limit to avoid new failure</title>
<updated>2009-08-13T15:25:39Z</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2009-08-10T07:28:45Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=11ccbdab27fc7b4f3c78e8a806745330534670f7'/>
<id>urn:sha1:11ccbdab27fc7b4f3c78e8a806745330534670f7</id>
<content type='text'>
* tests/cp/link-heap: Raise limit from 16MB to ~20MB,
to avoid spurious failure on rawhide.
</content>
</entry>
<entry>
<title>cp: accept the --reflink option</title>
<updated>2009-08-07T15:14:22Z</updated>
<author>
<name>Giuseppe Scrivano</name>
<email>gscrivano@gnu.org</email>
</author>
<published>2009-08-01T17:36:48Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=a1d7469835371ded0ad8e3496bc5a5bebf94ccef'/>
<id>urn:sha1:a1d7469835371ded0ad8e3496bc5a5bebf94ccef</id>
<content type='text'>
* NEWS: Mention it.
* doc/coreutils.texi (cp invocation): Describe it.
* src/copy.h (struct cp_options) [reflink]: New member.
* src/copy.c (usage): Describe it.
(copy_reg): If reflink is true try to clone the file.
(main): Check for --reflink.
(cp_option_init): Initialize the new member.
* src/install.c (cp_option_init): Initialize the new member.
* src/mv.c (cp_option_init): Likewise.
* tests/cp/sparse: Add a new test case.
</content>
</entry>
<entry>
<title>cp -pP (and e.g., -a): preserve time stamps on symlinks, too</title>
<updated>2009-08-04T15:38:54Z</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2009-07-27T15:08:02Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=eae535e1a322e244248bd31ed7e21ac95ecaa16d'/>
<id>urn:sha1:eae535e1a322e244248bd31ed7e21ac95ecaa16d</id>
<content type='text'>
* src/copy.c (utimensat_if_possible): New function.
(copy_internal): Remove variable, "preserve_metadata".
Replace with "dest_is_symlink".  That covers all cases but one:
the one in which cp --link has created hard links to non-directories.
In that case, there is no need to update attributes of the links.
Use utimensat_if_possible, to preserve timestamps of symlinks.
* NEWS (New features): Mention this.
* tests/Makefile.am (TESTS): Add cp/preserve-slink-time.
* tests/cp/preserve-slink-time: New file.
* m4/jm-macros.m4 (coreutils_MACROS): Test for utimensat.
Reported in http://bugzilla.redhat.com/230866
</content>
</entry>
<entry>
<title>tests: avoid false-positive cp/link-heap failure</title>
<updated>2009-07-09T13:50:49Z</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2009-07-09T13:50:21Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=68149832bd62d0e9c0dc6d4577d9343d0dc9ddbd'/>
<id>urn:sha1:68149832bd62d0e9c0dc6d4577d9343d0dc9ddbd</id>
<content type='text'>
* tests/cp/link-heap: Increase address space limit from 14000KB
to 16000KB, to avoid failure with Debian unstable's libc6-dev-2.9-19
</content>
</entry>
<entry>
<title>maint: update all Copyright year lists to include 2009</title>
<updated>2009-06-23T20:33:15Z</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2009-06-23T20:33:15Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=2232b4d08fdc8ff3ae8e7aa1fa28c8315c41d9ad'/>
<id>urn:sha1:2232b4d08fdc8ff3ae8e7aa1fa28c8315c41d9ad</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tests: ensure that cp's -a doesn't silence --preserve=context</title>
<updated>2009-04-28T09:16:33Z</updated>
<author>
<name>Ondřej Vašík</name>
<email>ovasik@redhat.com</email>
</author>
<published>2009-04-27T15:29:53Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=cb9fd937437cf4f9347925f6b9c82f4e92bae6e5'/>
<id>urn:sha1:cb9fd937437cf4f9347925f6b9c82f4e92bae6e5</id>
<content type='text'>
* tests/cp/cp-a-selinux: Ensure that the -a option does not silence
error diagnostics from --preserve=context, when preserving context
is required.
</content>
</entry>
<entry>
<title>tests: add test for xattr diagnostics on dest. FS lacking xattr support</title>
<updated>2009-04-28T09:16:29Z</updated>
<author>
<name>Ondřej Vašík</name>
<email>ovasik@redhat.com</email>
</author>
<published>2009-04-27T15:20:23Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=8259a73a85c5ef46c26da27f9424aeed360fa2cd'/>
<id>urn:sha1:8259a73a85c5ef46c26da27f9424aeed360fa2cd</id>
<content type='text'>
* tests/cp/cp-mv-enotsup-xattr: Ensure that xattr diagnostics are
displayed correctly when destination filesystem lacks xattr support.
* tests/Makefile.am (root_tests): Add new root-only test.
</content>
</entry>
<entry>
<title>cp: work around linux kernel bug: short-read != EOF on /proc</title>
<updated>2009-04-22T19:52:11Z</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2009-04-17T16:44:18Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=c74fbaefebe91ca60e3a8582613a3714c740df65'/>
<id>urn:sha1:c74fbaefebe91ca60e3a8582613a3714c740df65</id>
<content type='text'>
Remove the optimization that avoided up to 50% of cp's read syscalls.
Do not assume that a short read on a regular file indicates EOF.
When reading from a file in /proc on linux [at least 2.6.9 - 2.6.29]
into a 4k-byte buffer or larger, a short read does not
always indicate EOF.  For example, "cp /proc/slabinfo /tmp"
copies only 4068 of the total 7493 bytes.  This optimization
(25719a33154f0c62ea9881f0c79ae312dd4cec7a, Improve performance a bit
by optimizing away; 2005-11-24) appears to have been worth less than
a 2% speed-up (and usually much less), so the impact of removing it
is negligible.

* src/copy.c (copy_reg): Don't exit the loop early.
* tests/cp/proc-short-read: New test, lightly based on a suggestion
from Mike Frysinger, to exercise this fix.
* tests/Makefile.am (TESTS): Add cp/proc-short-read.
* NEWS (Improve robustness): Mention this change.
</content>
</entry>
<entry>
<title>tests: migrate setgid-check into test-lib.sh</title>
<updated>2009-03-27T08:28:08Z</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2009-03-27T08:23:35Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=e65d0d0525159f963b3b859706dc920bcae0a636'/>
<id>urn:sha1:e65d0d0525159f963b3b859706dc920bcae0a636</id>
<content type='text'>
* tests/test-lib.sh (skip_if_setgid_): New function.
* tests/setgid-check: Remove file.
* tests/Makefile.am (EXTRA_DIST): Remove setgid-check.
* tests/chmod/c-option: Use the new function rather than sourcing
the separate file.
* tests/cp/cp-parents: Likewise.
* tests/install/install-C: Likewise.
* tests/mkdir/parents: Likewise.
* tests/mkdir/perm: Likewise.
</content>
</entry>
</feed>
