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)
commitcbe16fc1b594572ec2cbbf5c2c3ee7a9012d60af
tree8c03df5b089035ff4dc1513db25ddd30ec27d344
parentd3430eef54b3b41e8659d549957d66e81b6eafed
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