<feed xmlns='http://www.w3.org/2005/Atom'>
<title>coreutils/tests/cp, branch next</title>
<subtitle>Mirror of https://https.git.savannah.gnu.org/git/coreutils.git/
</subtitle>
<id>https://git.shady.money/coreutils/atom?h=next</id>
<link rel='self' href='https://git.shady.money/coreutils/atom?h=next'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/'/>
<updated>2009-10-10T15:14:35Z</updated>
<entry>
<title>copy: allow symlink timestamp preservation on more systems</title>
<updated>2009-10-10T15:14:35Z</updated>
<author>
<name>Eric Blake</name>
<email>ebb9@byu.net</email>
</author>
<published>2009-10-08T21:57:06Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=82e344ca09dbc3f168ee598749e751373161ce30'/>
<id>urn:sha1:82e344ca09dbc3f168ee598749e751373161ce30</id>
<content type='text'>
* src/copy.c (utimens_symlink): Simplify by using lutimens.
* m4/jm-macros.m4 (coreutils_MACROS): Drop utimensat; gnulib does
this for us.
* tests/cp/preserve-slink-time: Recognize lutimes support.
</content>
</entry>
<entry>
<title>tests: cp/reflink-auto guard against a pathological $TMPDIR</title>
<updated>2009-08-29T15:29:32Z</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2009-08-29T06:31:26Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=6c497c6c2d8f917ec88292f3952c28f5fd4d7a86'/>
<id>urn:sha1:6c497c6c2d8f917ec88292f3952c28f5fd4d7a86</id>
<content type='text'>
* tests/cp/reflink-auto: Add quotes.
</content>
</entry>
<entry>
<title>cp --reflink: preserve attributes on cloned files if asked</title>
<updated>2009-08-29T00:37:05Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2009-08-28T23:45:15Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=9e59f8c47ca1d8421efdd930db90fee075557d74'/>
<id>urn:sha1:9e59f8c47ca1d8421efdd930db90fee075557d74</id>
<content type='text'>
* src/copy.c (copy_reg): When cloning only skip the data copying
* tests/cp/reflink-perm: New test to check times and modes copied
* tests/Makefile.am: Reference the new test
* NEWS: Mention the fix
</content>
</entry>
<entry>
<title>cp --reflink: add an "auto" parameter to fall back to a normal copy</title>
<updated>2009-08-28T23:24:49Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2009-08-25T23:32:43Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=72f98388c36676e5c9ba6a72df5693c207862204'/>
<id>urn:sha1:72f98388c36676e5c9ba6a72df5693c207862204</id>
<content type='text'>
* doc/coreutils.texi (cp invocation): Document the new
"auto" and "always" options to --reflink.
* src/copy.c (copy_reg): Fall back to a standard copy
when reflink() is not supported and --reflink=auto specified.
* src/copy.h [struct cp_options] (reflink): Change type s/bool/enum/.
* src/cp.c (usage): Describe the --reflink={always,auto} options
and expand a little on what --reflink does.
(main): parse the new parameters to --reflink and allow all
--sparse options with --reflink=auto.
* src/install.c (cp_option_init): Init the enum instead of bool.
* src/mv.c (cp_option_init): Likewise.
* tests/cp/reflink-auto: A new test for falling back to normal copy.
* tests/Makefile.am: Reference the new test.
* NEWS: Mention the new feature.
</content>
</entry>
<entry>
<title>global: convert indentation-TABs to spaces</title>
<updated>2009-08-25T07:21:00Z</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2009-08-22T16:56:06Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=5e778f7c8d1ecf3d8f11385db013af2ba026e2a5'/>
<id>urn:sha1:5e778f7c8d1ecf3d8f11385db013af2ba026e2a5</id>
<content type='text'>
Transformed via this shell code:
t=$'\t'
git ls-files \
  | grep -vE '(^|/)((GNU)?[Mm]akefile|ChangeLog)|\.(am|mk)$' \
  | grep -vE 'tests/pr/|help2man' \
  | xargs grep -lE "^ *$t" \
  | xargs perl -MText::Tabs -ni -le \
    '$m=/^( *\t[ \t]*)(.*)/; print $m ? expand($1) . $2 : $_'
</content>
</entry>
<entry>
<title>tests: skip (don't fail) a cp test, upon mount-related failure</title>
<updated>2009-08-23T20:05:58Z</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2009-08-23T20:02:12Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=831acb987e970ca86b72eb594965ff59bfedfd30'/>
<id>urn:sha1:831acb987e970ca86b72eb594965ff59bfedfd30</id>
<content type='text'>
* tests/cp/cp-mv-enotsup-xattr: Upon a set-up failiure, rather than
failing the test with a "framework failure" diagnostic, just skip it.
Russell Whitaker reported that this test failed on slackware.
</content>
</entry>
<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>
</feed>
