DISCARD=UNMAP
This commit is contained in:
parent
1eb2e0f60d
commit
b04dc04c1b
|
@ -37,7 +37,9 @@ if [ "$QEMU_HDA" ]; then
|
|||
qemu-img create -f qcow2 -o preallocation=off "$QEMU_HDA" "${QEMU_HDA_SIZE:-8G}"
|
||||
)
|
||||
fi
|
||||
qemuArgs+=( -hda "$QEMU_HDA" )
|
||||
# http://wiki.qemu.org/download/qemu-doc.html#Invocation
|
||||
#qemuArgs+=( -hda "$QEMU_HDA" )
|
||||
qemuArgs+=( -drive file="$QEMU_HDA",index=0,media=disk,discard=unmap )
|
||||
fi
|
||||
|
||||
if [ "$QEMU_CDROM" ]; then
|
||||
|
|
Loading…
Reference in New Issue
Block a user