quote filesystem path

master
Marc Wäckerlin 7 years ago
parent 5ec9d1f164
commit f1f927a9b3
  1. 4
      btrfs-snapshots.sh

@ -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

Loading…
Cancel
Save