mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2025-02-24 21:40:01 +08:00
Use fallocate instead of truncate
This commit is contained in:
parent
b256ae0445
commit
5bd90dc285
@ -101,7 +101,7 @@ echo "Install: Creating partition table..."
|
|||||||
|
|
||||||
SYSTEM="$TMP/sys.img"
|
SYSTEM="$TMP/sys.img"
|
||||||
SYSTEM_SIZE="4954537983"
|
SYSTEM_SIZE="4954537983"
|
||||||
truncate -s "${SYSTEM_SIZE}" "${SYSTEM}"
|
fallocate -l "${SYSTEM_SIZE}" "${SYSTEM}"
|
||||||
|
|
||||||
PART="$TMP/partition.fdisk"
|
PART="$TMP/partition.fdisk"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user