mirror of
https://github.com/markusressel/zfs-inplace-rebalancing
synced 2026-02-05 05:24:07 +00:00
Fix echo bug
Removed the 'recreating hardlinks' echo for inode groups of 1 file.
This commit is contained in:
parent
3ae15e565a
commit
d7c74441a5
@ -165,6 +165,8 @@ function process_inode_group() {
|
||||
fi
|
||||
mv "${tmp_file_path}" "${main_file}"
|
||||
|
||||
# Only recreate hardlinks if there are multiple paths
|
||||
if [ "${num_paths}" -gt 1 ]; then
|
||||
echo "Recreating hardlinks..."
|
||||
for (( i=1; i<${#paths[@]}; i++ )); do
|
||||
if [ "$debug_flag" = true ]; then
|
||||
@ -172,6 +174,7 @@ function process_inode_group() {
|
||||
fi
|
||||
ln "${main_file}" "${paths[$i]}"
|
||||
done
|
||||
fi
|
||||
|
||||
if [ "${passes_flag}" -ge 1 ]; then
|
||||
# Update rebalance "database" for all files
|
||||
|
||||
Loading…
Reference in New Issue
Block a user