qemu-img: open files with cache=writeback
authoraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>
Sun, 30 Nov 2008 19:12:49 +0000 (19:12 +0000)
committeraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>
Sun, 30 Nov 2008 19:12:49 +0000 (19:12 +0000)
commitb7a957f6d4c4b68ef3ccccc80b4022d2e0586380
tree0ba6e3dda0eae5d50e96992cfecd073d71acb713
parent92346f5bd5dea2e0039dec77b9358d3b02472eb6
qemu-img: open files with cache=writeback

Data integrity is not important in qemu-img, so open the files with
cache=writeback. This fixes the performance regression seen with qemu-img
since revision 5485, and most particularly with the qcow2 format.

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5839 c046a42c-6fe2-441c-8c8c-71466251a162
qemu-img.c