blob: c2e5fa207b7d29e02bbcd0904b323e8fa0b077ee (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
[[!comment format=mdwn
username="https://www.google.com/accounts/o8/id?id=AItOawkHTRzRZoBFEDl9XcTfVveW8yO7CTKMg-o"
nickname="Felix"
subject="use your own cp"
date="2015-02-04T14:16:14Z"
content="""
As a workaround one could use another cp. Maybe something like this:
Make an executable shell script \"cp\":
#!/bin/sh
p1=\"$1\"
shift
if [ \"$p1\" = '--reflink=auto' ] ; then
p1='--link'
fi
exec /bin/cp \"$p1\" \"$@\"
And put it into a directory which is found before the \"real\" cp:
export PATH=/path/to/special/cp/:$PATH
This \"cp\" makes a hardlink if the '--reflink=auto' parameter is used (1st).
"""]]
|