DISCARD=UNMAP

This commit is contained in:
Tianon Gravi 2015-11-03 21:52:13 -08:00
parent 1eb2e0f60d
commit b04dc04c1b

View File

@ -37,7 +37,9 @@ if [ "$QEMU_HDA" ]; then
qemu-img create -f qcow2 -o preallocation=off "$QEMU_HDA" "${QEMU_HDA_SIZE:-8G}" qemu-img create -f qcow2 -o preallocation=off "$QEMU_HDA" "${QEMU_HDA_SIZE:-8G}"
) )
fi 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 fi
if [ "$QEMU_CDROM" ]; then if [ "$QEMU_CDROM" ]; then