<feed xmlns='http://www.w3.org/2005/Atom'>
<title>coreutils/src/copy.c, branch v7.6</title>
<subtitle>Mirror of https://https.git.savannah.gnu.org/git/coreutils.git/
</subtitle>
<id>https://git.shady.money/coreutils/atom?h=v7.6</id>
<link rel='self' href='https://git.shady.money/coreutils/atom?h=v7.6'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/'/>
<updated>2009-09-05T16:22:09Z</updated>
<entry>
<title>maint: remove some tab indentation from copy.c</title>
<updated>2009-09-05T16:22:09Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2009-09-05T16:21:17Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=a5e224d7931dced1acb37befb0d895fb85e30108'/>
<id>urn:sha1:a5e224d7931dced1acb37befb0d895fb85e30108</id>
<content type='text'>
* src/copy.c (copy_internal): Remove tabs erroneously added
in commit 3346c0af.
</content>
</entry>
<entry>
<title>mv, cp: tweak LINK_FOLLOWS_SYMLINKS logic</title>
<updated>2009-09-04T20:54:52Z</updated>
<author>
<name>Eric Blake</name>
<email>ebb9@byu.net</email>
</author>
<published>2009-09-04T18:40:39Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=3346c0afbc5fcf68322dccd69fb291854c269935'/>
<id>urn:sha1:3346c0afbc5fcf68322dccd69fb291854c269935</id>
<content type='text'>
* gnulib: Update to latest gnulib.
* src/copy.c (copy_internal): Adjust comment in light of POSIX
2008, and deal with macro now being tri-state.
</content>
</entry>
<entry>
<title>cp: don't leak resources for each xattr preservation failure</title>
<updated>2009-09-03T09:00:32Z</updated>
<author>
<name>Ondřej Vašík</name>
<email>ovasik@redhat.com</email>
</author>
<published>2009-09-02T09:34:27Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=1a94ac4a0524a760c1c3ea7a5ca9032e994785c2'/>
<id>urn:sha1:1a94ac4a0524a760c1c3ea7a5ca9032e994785c2</id>
<content type='text'>
* src/copy.c (copy_reg): Don't return from the function after an
unsuccessful and required preservation of extended attributes.
This resulted in leaking the copy buffer and file descriptors.
* NEWS (Bug fixes): Mention the fix.
The bug was introduced in coreutils-7.1 via commit 0889381c, 2009-01-23,
"cp/mv: add xattr support".
</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>build: avoid unused variable warnings on cygwin</title>
<updated>2009-08-28T18:56:53Z</updated>
<author>
<name>Eric Blake</name>
<email>ebb9@byu.net</email>
</author>
<published>2009-08-28T17:03:05Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=359fa92f2a08991f261fad12b5a1809cff108e9b'/>
<id>urn:sha1:359fa92f2a08991f261fad12b5a1809cff108e9b</id>
<content type='text'>
* src/copy.c (clone_file, copy_attr_by_fd, copy_attr_by_name):
Mark up unused variables.
* src/remove.c (dirent_inode_sort_may_be_useful): Likewise.
</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>cp: ignore obscure failure to preserve symlink time stamps,</title>
<updated>2009-08-24T10:44:13Z</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2009-08-24T06:21:47Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=2bc0f3caaafeb240cdcfd050b7ad1fe0ad14addf'/>
<id>urn:sha1:2bc0f3caaafeb240cdcfd050b7ad1fe0ad14addf</id>
<content type='text'>
...when run on a kernel older than what was implied by headers and
libraries tested at configure time.
* src/copy.c (utimens_symlink): Ignore failure when errno == ENOSYS.
* NEWS (Bug fixes): Mention it.
Reported by Todd Zullinger and Kamil Dudka.
Details in this thread:
http://thread.gmane.org/gmane.linux.redhat.fedora.devel/119834
</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>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>
</feed>
