Skip to content

Commit

Permalink
Remove extraneous flags
Browse files Browse the repository at this point in the history
  • Loading branch information
Miladiir committed Jun 14, 2024
1 parent 979edb2 commit 7e3e496
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zfs-inplace-rebalancing.sh
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ function rebalance () {
# -d -- keep symlinks (dont copy target)
# -x -- stay on one system
# -p -- preserve ACLs too
cp --reflink=never -adxp "${file_path}" "${tmp_file_path}"
cp --reflink=never -ax "${file_path}" "${tmp_file_path}"
elif [[ "${OSTYPE,,}" == "darwin"* ]] || [[ "${OSTYPE,,}" == "freebsd"* ]]; then
# Mac OS
# FreeBSD
Expand All @@ -107,7 +107,7 @@ function rebalance () {
# -p -- Cause cp to preserve the following attributes of each source file
# in the copy: modification time, access time, file flags, file mode,
# ACL, user ID, and group ID, as allowed by permissions.
cp -axp "${file_path}" "${tmp_file_path}"
cp -ax "${file_path}" "${tmp_file_path}"
else
echo "Unsupported OS type: $OSTYPE"
exit 1
Expand Down

0 comments on commit 7e3e496

Please sign in to comment.