fallocate

This commit is contained in:
Kroese 2023-04-15 12:56:18 +02:00 committed by GitHub
parent 42ed8f6392
commit bcde0e2f74

View File

@ -44,13 +44,13 @@ fi
# echo "Resizing data disk from $OLD_SIZE to $NEW_SIZE bytes" # echo "Resizing data disk from $OLD_SIZE to $NEW_SIZE bytes"
# #
# if [ "$NEW_SIZE" -gt "$OLD_SIZE" ]; then # if [ "$NEW_SIZE" -gt "$OLD_SIZE" ]; then
# truncate -s "${NEW_SIZE}" "${DATA}" # fallocate -l "${NEW_SIZE}" "${DATA}"
# btrfs filesystem resize "${NEW_SIZE}" "${DATA}" # btrfs filesystem resize "${NEW_SIZE}" "${DATA}"
# fi # fi
# #
# if [ "$NEW_SIZE" -lt "$OLD_SIZE" ]; then # if [ "$NEW_SIZE" -lt "$OLD_SIZE" ]; then
# btrfs filesystem resize "${NEW_SIZE}" "${DATA}" # btrfs filesystem resize "${NEW_SIZE}" "${DATA}"
# truncate -s "${NEW_SIZE}" "${DATA}" # fallocate -l "${NEW_SIZE}" "${DATA}"
# fi # fi
# fi # fi