summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZuul <zuul@review.opendev.org>2021-05-25 13:03:29 +0000
committerGerrit Code Review <review@openstack.org>2021-05-25 13:03:29 +0000
commitb4dd03168e631baeb0edd2c4269e1258a8fed839 (patch)
tree235fa912403ed521de68d8f2f7a7f955141694c1
parent6fc5a14760a298827e4f3c2229bd738dcfdd9e18 (diff)
parentd1844c61b1a419dc39aca41c9266fb65eaff78e4 (diff)
downloadironic-python-agent-b4dd03168e631baeb0edd2c4269e1258a8fed839.tar.gz
Merge "Enable out-of-order writes when writing whole disk images"
-rwxr-xr-xironic_python_agent/shell/write_image.sh2
-rw-r--r--releasenotes/notes/qemu-img-ooo-write-721b8a0057ab7b8a.yaml5
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.