mirror of
https://github.com/markusressel/zfs-inplace-rebalancing
synced 2026-02-04 21:14:09 +00:00
add --reflink=never to cp on linux
This commit is contained in:
parent
d6cbeb3f40
commit
3d26cd83b0
@ -92,11 +92,12 @@ function rebalance () {
|
||||
if [[ "${OSTYPE,,}" == "linux-gnu"* ]]; then
|
||||
# Linux
|
||||
|
||||
# --reflink=never -- force standard copy (see ZFS Block Cloning)
|
||||
# -a -- keep attributes
|
||||
# -d -- keep symlinks (dont copy target)
|
||||
# -x -- stay on one system
|
||||
# -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
|
||||
# Mac OS
|
||||
# FreeBSD
|
||||
|
||||
Loading…
Reference in New Issue
Block a user