mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2025-02-24 13:30:02 +08:00
Always allocate
This commit is contained in:
parent
c3291e6eaa
commit
31eea8b2d9
@ -120,7 +120,12 @@ if ! fallocate -l "${SYSTEM_SIZE}" "${SYSTEM}"; then
|
|||||||
echo "ERROR: Could not allocate a file for the system disk." && exit 88
|
echo "ERROR: Could not allocate a file for the system disk." && exit 88
|
||||||
fi
|
fi
|
||||||
|
|
||||||
dd if=/dev/urandom of="${SYSTEM}" count="${SYSTEM_SIZE}" bs=1M iflag=count_bytes status=none
|
if [ "$ALLOCATE" = "Z" ]; then
|
||||||
|
|
||||||
|
echo "Install: Preallocating 4 GB of diskspace..."
|
||||||
|
dd if=/dev/urandom of="${SYSTEM}" count="${SYSTEM_SIZE}" bs=1M iflag=count_bytes status=none
|
||||||
|
|
||||||
|
fi
|
||||||
|
|
||||||
# Check if file exists
|
# Check if file exists
|
||||||
if [ ! -f "${SYSTEM}" ]; then
|
if [ ! -f "${SYSTEM}" ]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user