add --reflink=never to cp on linux (#34)
This commit is contained in:
parent
d6cbeb3f40
commit
979edb265c
@ -92,11 +92,12 @@ function rebalance () {
|
|||||||
if [[ "${OSTYPE,,}" == "linux-gnu"* ]]; then
|
if [[ "${OSTYPE,,}" == "linux-gnu"* ]]; then
|
||||||
# Linux
|
# Linux
|
||||||
|
|
||||||
|
# --reflink=never -- force standard copy (see ZFS Block Cloning)
|
||||||
# -a -- keep attributes
|
# -a -- keep attributes
|
||||||
# -d -- keep symlinks (dont copy target)
|
# -d -- keep symlinks (dont copy target)
|
||||||
# -x -- stay on one system
|
# -x -- stay on one system
|
||||||
# -p -- preserve ACLs too
|
# -p -- preserve ACLs too
|
||||||
cp -adxp "${file_path}" "${tmp_file_path}"
|
cp --reflink=never -adxp "${file_path}" "${tmp_file_path}"
|
||||||
elif [[ "${OSTYPE,,}" == "darwin"* ]] || [[ "${OSTYPE,,}" == "freebsd"* ]]; then
|
elif [[ "${OSTYPE,,}" == "darwin"* ]] || [[ "${OSTYPE,,}" == "freebsd"* ]]; then
|
||||||
# Mac OS
|
# Mac OS
|
||||||
# FreeBSD
|
# FreeBSD
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user