In cases where hardlinks are acceptable but a reflinks are preferred, it would be nice to have a way to tell cp to use that heuristic: make a reflink if possible, or a hard link otherwise.
On a related note, there is no =WHEN option for --link which could be useful.
I propose adding a new --reflink-or-link[=WHEN] option and extending --link to --link[=WHEN].
In cases where hardlinks are acceptable but a reflinks are preferred, it would be nice to have a way to tell
cpto use that heuristic: make a reflink if possible, or a hard link otherwise.On a related note, there is no
=WHENoption for--linkwhich could be useful.I propose adding a new
--reflink-or-link[=WHEN]option and extending--linkto--link[=WHEN].