mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2025-02-24 21:40:01 +08:00
Write zeroes
This commit is contained in:
parent
f044f5966e
commit
0d32e03958
@ -115,7 +115,9 @@ 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
|
fi
|
||||||
|
|
||||||
if [ "$ALLOCATE" != "F" ]; then
|
if [ "$ALLOCATE" != "Z" ]; then
|
||||||
|
|
||||||
|
# Cannot use truncate here because of swap partition
|
||||||
|
|
||||||
if ! fallocate -l "${SYSTEM_SIZE}" "${SYSTEM}"; then
|
if ! fallocate -l "${SYSTEM_SIZE}" "${SYSTEM}"; then
|
||||||
rm -f "${SYSTEM}"
|
rm -f "${SYSTEM}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user