diff options
author | Dmitry Tantsur <dtantsur@protonmail.com> | 2021-05-18 14:41:21 +0200 |
---|---|---|
committer | Dmitry Tantsur <dtantsur@protonmail.com> | 2021-05-18 14:41:21 +0200 |
commit | d1844c61b1a419dc39aca41c9266fb65eaff78e4 (patch) | |
tree | c2b87ce13aaacd50638f9289724f9e3ae14cd1f1 | |
parent | d6e4fbd8272bbd5129863c03712a3324eb7e48f9 (diff) | |
download | ironic-python-agent-d1844c61b1a419dc39aca41c9266fb65eaff78e4.tar.gz |
Enable out-of-order writes when writing whole disk images
Per documentation it improves performance when using -O host_device.
Change-Id: Ic6a97af9f865d07c9cb4257397a320475a28f88b
-rwxr-xr-x | ironic_python_agent/shell/write_image.sh | 2 | ||||
-rw-r--r-- | releasenotes/notes/qemu-img-ooo-write-721b8a0057ab7b8a.yaml | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/ironic_python_agent/shell/write_image.sh b/ironic_python_agent/shell/write_image.sh index bcd6bfd3..61e9d0b9 100755 --- a/ironic_python_agent/shell/write_image.sh +++ b/ironic_python_agent/shell/write_image.sh @@ -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!" diff --git a/releasenotes/notes/qemu-img-ooo-write-721b8a0057ab7b8a.yaml b/releasenotes/notes/qemu-img-ooo-write-721b8a0057ab7b8a.yaml new file mode 100644 index 00000000..2de30f57 --- /dev/null +++ b/releasenotes/notes/qemu-img-ooo-write-721b8a0057ab7b8a.yaml @@ -0,0 +1,5 @@ +--- +fixes: + - | + Permits out-of-order writes when converting a whole disk images to improve + performance. |