]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Format 'write-cache' parameter for disk frontends
authorPeter Krempa <pkrempa@redhat.com>
Wed, 4 Apr 2018 07:44:34 +0000 (09:44 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 19 Apr 2018 09:20:34 +0000 (11:20 +0200)
commit327430fcfcf34c7b27d9d378df19032fd5d0e451
tree363649eeab53b02b62fa572322f2d6cac3d62e65
parent955df88de6a229fad64961b6682f96c631e878ed
qemu: Format 'write-cache' parameter for disk frontends

The disk cache mode translates to various frontend and backend
attributes for the qemu block layer. For the frontend device the
'writeback' parameter is used and provided as 'write-cache'. Implement
this so that we can later switch to using -blockdev where we will not
pass the cachemode directly any more.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
src/qemu/qemu_command.c
tests/qemuxml2argvdata/disk-drive-write-cache.x86_64-2.7.0.args
tests/qemuxml2argvdata/disk-drive-write-cache.x86_64-latest.args