mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
nbd: Add writethrough to block-export-add
qemu-nbd allows use of writethrough cache modes, which mean that write requests made through NBD will cause a flush before they complete. Expose the same functionality in block-export-add. Signed-off-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Max Reitz <mreitz@redhat.com> Message-Id: <20200924152717.287415-10-kwolf@redhat.com> Acked-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
parent
1c8222b014
commit
fefee85da0
2 changed files with 11 additions and 2 deletions
|
@ -170,10 +170,15 @@
|
|||
# Describes a block export, i.e. how single node should be exported on an
|
||||
# external interface.
|
||||
#
|
||||
# @writethrough: If true, caches are flushed after every write request to the
|
||||
# export before completion is signalled. (since: 5.2;
|
||||
# default: false)
|
||||
#
|
||||
# Since: 4.2
|
||||
##
|
||||
{ 'union': 'BlockExportOptions',
|
||||
'base': { 'type': 'BlockExportType' },
|
||||
'base': { 'type': 'BlockExportType',
|
||||
'*writethrough': 'bool' },
|
||||
'discriminator': 'type',
|
||||
'data': {
|
||||
'nbd': 'BlockExportOptionsNbd'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue