mirror of
https://github.com/qemu/qemu.git
synced 2024-11-28 14:24:02 +08:00
qapi: publish copy-before-write filter
Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> Reviewed-by: Max Reitz <mreitz@redhat.com> Acked-by: Markus Armbruster <armbru@redhat.com> Message-Id: <20210824083856.17408-23-vsementsov@virtuozzo.com> Signed-off-by: Hanna Reitz <hreitz@redhat.com>
This commit is contained in:
parent
751cec7a26
commit
783b2825f6
@ -2825,13 +2825,14 @@
|
|||||||
# @blklogwrites: Since 3.0
|
# @blklogwrites: Since 3.0
|
||||||
# @blkreplay: Since 4.2
|
# @blkreplay: Since 4.2
|
||||||
# @compress: Since 5.0
|
# @compress: Since 5.0
|
||||||
|
# @copy-before-write: Since 6.2
|
||||||
#
|
#
|
||||||
# Since: 2.9
|
# Since: 2.9
|
||||||
##
|
##
|
||||||
{ 'enum': 'BlockdevDriver',
|
{ 'enum': 'BlockdevDriver',
|
||||||
'data': [ 'blkdebug', 'blklogwrites', 'blkreplay', 'blkverify', 'bochs',
|
'data': [ 'blkdebug', 'blklogwrites', 'blkreplay', 'blkverify', 'bochs',
|
||||||
'cloop', 'compress', 'copy-on-read', 'dmg', 'file', 'ftp', 'ftps',
|
'cloop', 'compress', 'copy-before-write', 'copy-on-read', 'dmg',
|
||||||
'gluster',
|
'file', 'ftp', 'ftps', 'gluster',
|
||||||
{'name': 'host_cdrom', 'if': 'HAVE_HOST_BLOCK_DEVICE' },
|
{'name': 'host_cdrom', 'if': 'HAVE_HOST_BLOCK_DEVICE' },
|
||||||
{'name': 'host_device', 'if': 'HAVE_HOST_BLOCK_DEVICE' },
|
{'name': 'host_device', 'if': 'HAVE_HOST_BLOCK_DEVICE' },
|
||||||
'http', 'https', 'iscsi',
|
'http', 'https', 'iscsi',
|
||||||
@ -4049,6 +4050,25 @@
|
|||||||
'base': 'BlockdevOptionsGenericFormat',
|
'base': 'BlockdevOptionsGenericFormat',
|
||||||
'data': { '*bottom': 'str' } }
|
'data': { '*bottom': 'str' } }
|
||||||
|
|
||||||
|
##
|
||||||
|
# @BlockdevOptionsCbw:
|
||||||
|
#
|
||||||
|
# Driver specific block device options for the copy-before-write driver,
|
||||||
|
# which does so called copy-before-write operations: when data is
|
||||||
|
# written to the filter, the filter first reads corresponding blocks
|
||||||
|
# from its file child and copies them to @target child. After successfully
|
||||||
|
# copying, the write request is propagated to file child. If copying
|
||||||
|
# fails, the original write request is failed too and no data is written
|
||||||
|
# to file child.
|
||||||
|
#
|
||||||
|
# @target: The target for copy-before-write operations.
|
||||||
|
#
|
||||||
|
# Since: 6.2
|
||||||
|
##
|
||||||
|
{ 'struct': 'BlockdevOptionsCbw',
|
||||||
|
'base': 'BlockdevOptionsGenericFormat',
|
||||||
|
'data': { 'target': 'BlockdevRef' } }
|
||||||
|
|
||||||
##
|
##
|
||||||
# @BlockdevOptions:
|
# @BlockdevOptions:
|
||||||
#
|
#
|
||||||
@ -4101,6 +4121,7 @@
|
|||||||
'bochs': 'BlockdevOptionsGenericFormat',
|
'bochs': 'BlockdevOptionsGenericFormat',
|
||||||
'cloop': 'BlockdevOptionsGenericFormat',
|
'cloop': 'BlockdevOptionsGenericFormat',
|
||||||
'compress': 'BlockdevOptionsGenericFormat',
|
'compress': 'BlockdevOptionsGenericFormat',
|
||||||
|
'copy-before-write':'BlockdevOptionsCbw',
|
||||||
'copy-on-read':'BlockdevOptionsCor',
|
'copy-on-read':'BlockdevOptionsCor',
|
||||||
'dmg': 'BlockdevOptionsGenericFormat',
|
'dmg': 'BlockdevOptionsGenericFormat',
|
||||||
'file': 'BlockdevOptionsFile',
|
'file': 'BlockdevOptionsFile',
|
||||||
|
Loading…
Reference in New Issue
Block a user