|
|
@ -148,9 +148,9 @@ for fs in ${BTRFS_VOLUMES}; do |
|
|
|
sudo umount "$TMP_MNT" |
|
|
|
sudo umount "$TMP_MNT" |
|
|
|
if test $fast -eq 0; then |
|
|
|
if test $fast -eq 0; then |
|
|
|
echo "Defragment subvolume: '${fs}'" |
|
|
|
echo "Defragment subvolume: '${fs}'" |
|
|
|
sudo btrfs filesystem defragment ${fs} |
|
|
|
sudo btrfs filesystem defragment "${fs}" |
|
|
|
echo "Rebalance subvolume: '${fs}'" |
|
|
|
echo "Rebalance subvolume: '${fs}'" |
|
|
|
sudo btrfs balance start ${fs} |
|
|
|
sudo btrfs balance start "${fs}" |
|
|
|
fi |
|
|
|
fi |
|
|
|
else |
|
|
|
else |
|
|
|
echo "ERROR: no device found for $fs" 1>&2 |
|
|
|
echo "ERROR: no device found for $fs" 1>&2 |
|
|
|