summaryrefslogtreecommitdiff
path: root/ironic_python_agent/shell
diff options
context:
space:
mode:
authorDmitry Tantsur <dtantsur@protonmail.com>2021-05-18 14:41:21 +0200
committerDmitry Tantsur <dtantsur@protonmail.com>2021-05-18 14:41:21 +0200
commitd1844c61b1a419dc39aca41c9266fb65eaff78e4 (patch)
treec2b87ce13aaacd50638f9289724f9e3ae14cd1f1 /ironic_python_agent/shell
parentd6e4fbd8272bbd5129863c03712a3324eb7e48f9 (diff)
downloadironic-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
Diffstat (limited to 'ironic_python_agent/shell')
-rwxr-xr-xironic_python_agent/shell/write_image.sh2
1 files changed, 1 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!"