mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2025-02-24 13:30:02 +08:00
Make preallocation configurable
This commit is contained in:
parent
249004c84c
commit
b5194655d1
@ -112,7 +112,7 @@ SYSTEM_SIZE="4954537983"
|
||||
SPACE=$(df --output=avail -B 1 "$TMP" | tail -n 1)
|
||||
|
||||
if (( SYSTEM_SIZE > SPACE )); then
|
||||
echo "ERROR: Not enough free space to create a 4 GB system disk." && exit 87
|
||||
echo "ERROR: Not enough free space to create a 4 GB system disk." && exit 87
|
||||
fi
|
||||
|
||||
if ! fallocate -l "${SYSTEM_SIZE}" "${SYSTEM}"; then
|
||||
|
Loading…
x
Reference in New Issue
Block a user