cp: make --attributes-only override --reflink completely
authorPádraig Brady <P@draigBrady.com>
Tue, 26 Oct 2010 16:55:10 +0000 (17:55 +0100)
committerPádraig Brady <P@draigBrady.com>
Wed, 27 Oct 2010 10:18:51 +0000 (11:18 +0100)
commit883ac22239036025896ff99bd4b2a6d02712f39f
tree93bd2ebfec80b218b8fd55f144a77a4d27ce8a3d
parent0d792d061e460fd5dfe6e4226f96bbc3b8788199
cp: make --attributes-only override --reflink completely

* doc/coreutils.texi (cp invocation): Change the description slightly
so as users might not immediately discount using this option.
Mention that --reflink is overridden by the other linking options and
--attributes-only, and give an example where this might be useful.
* src/copy.c (copy_internal): Bypass the reflink if
--attributes-only is specifed.
* tests/cp/reflink-perm: Ensure both --reflink modes are
overridden by --attributes-only.
* NEWS: Mention the change in behavior.
Reported by Jim Meyering.
NEWS
doc/coreutils.texi
src/copy.c
tests/cp/reflink-perm