add balancing on btrfs mounts

This commit is contained in:
Tobias Powalowski 2015-01-15 18:10:16 +01:00
parent db02c94c48
commit 5c3d48033b

View file

@ -2514,6 +2514,8 @@ _mkfs() {
DIALOG --msgbox "Error mounting ${_dest}${_mountpoint}" 0 0
return 1
fi
# btrfs needs balancing, else weird things could happen
[[ "${_fstype}" = "btrfs" ]] && btrfs balance start ${_dest}${_mountpoint} >${LOG} 2>&1
# change permission of base directories to correct permission
# to avoid btrfs issues
if [[ "${_mountpoint}" = "/tmp" ]]; then