mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2025-02-24 21:40:01 +08:00
fallocate
This commit is contained in:
parent
42ed8f6392
commit
bcde0e2f74
4
disk.sh
4
disk.sh
@ -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
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user