Enable out-of-order writes when writing whole disk images

Per documentation it improves performance when using -O host_device.

Change-Id: Ic6a97af9f865d07c9cb4257397a320475a28f88b
This commit is contained in:
Dmitry Tantsur
2021-05-18 14:41:21 +02:00
parent d6e4fbd827
commit d1844c61b1
2 changed files with 6 additions and 1 deletions

View File

@@ -49,7 +49,7 @@ log "Imaging $IMAGEFILE to $DEVICE"
# limit the memory usage for qemu-img to 2 GiB
ulimit -v 2097152
qemu-img convert -t directsync -O host_device $IMAGEFILE $DEVICE
qemu-img convert -t directsync -O host_device -W $IMAGEFILE $DEVICE
sync
log "${DEVICE} imaged successfully!"

View File

@@ -0,0 +1,5 @@
---
fixes:
- |
Permits out-of-order writes when converting a whole disk images to improve
performance.