]> git.ipfire.org Git - thirdparty/qemu.git/commit
qemu-img: Add cache command line option
authorFederico Simoncelli <fsimonce@redhat.com>
Mon, 20 Jun 2011 16:48:19 +0000 (12:48 -0400)
committerKevin Wolf <kwolf@redhat.com>
Tue, 5 Jul 2011 09:23:29 +0000 (11:23 +0200)
commit661a0f712b7c5b78408d85ba8b7f47ce44f395c0
tree8c03df5b089035ff4dc1513db25ddd30ec27d344
parent02854532c215872b2af5ed48af93b7a309de1b1b
qemu-img: Add cache command line option

qemu-img currently writes disk images using writeback and filling
up the cache buffers which are then flushed by the kernel preventing
other processes from accessing the storage.
This is particularly bad in cluster environments where time-based
algorithms might be in place and accessing the storage within
certain timeouts is critical.
This patch adds the option to choose a cache method when writing
disk images.

Signed-off-by: Federico Simoncelli <fsimonce@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
qemu-img-cmds.hx
qemu-img.c