mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
qapi: copy-on-read filter: add 'bottom' option
Add an option to limit copy-on-read operations to specified sub-chain of backing-chain, to make copy-on-read filter useful for block-stream job. Suggested-by: Max Reitz <mreitz@redhat.com> Suggested-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> Signed-off-by: Andrey Shinkevich <andrey.shinkevich@virtuozzo.com> Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> [vsementsov: change subject, modified to freeze the chain, do some fixes] Message-Id: <20201216061703.70908-6-vsementsov@virtuozzo.com> Signed-off-by: Max Reitz <mreitz@redhat.com>
This commit is contained in:
parent
880747a887
commit
e4c8fddde7
2 changed files with 115 additions and 3 deletions
|
@ -3959,6 +3959,24 @@
|
|||
'data': { 'throttle-group': 'str',
|
||||
'file' : 'BlockdevRef'
|
||||
} }
|
||||
|
||||
##
|
||||
# @BlockdevOptionsCor:
|
||||
#
|
||||
# Driver specific block device options for the copy-on-read driver.
|
||||
#
|
||||
# @bottom: The name of a non-filter node (allocation-bearing layer) that
|
||||
# limits the COR operations in the backing chain (inclusive), so
|
||||
# that no data below this node will be copied by this filter.
|
||||
# If option is absent, the limit is not applied, so that data
|
||||
# from all backing layers may be copied.
|
||||
#
|
||||
# Since: 6.0
|
||||
##
|
||||
{ 'struct': 'BlockdevOptionsCor',
|
||||
'base': 'BlockdevOptionsGenericFormat',
|
||||
'data': { '*bottom': 'str' } }
|
||||
|
||||
##
|
||||
# @BlockdevOptions:
|
||||
#
|
||||
|
@ -4011,7 +4029,7 @@
|
|||
'bochs': 'BlockdevOptionsGenericFormat',
|
||||
'cloop': 'BlockdevOptionsGenericFormat',
|
||||
'compress': 'BlockdevOptionsGenericFormat',
|
||||
'copy-on-read':'BlockdevOptionsGenericFormat',
|
||||
'copy-on-read':'BlockdevOptionsCor',
|
||||
'dmg': 'BlockdevOptionsGenericFormat',
|
||||
'file': 'BlockdevOptionsFile',
|
||||
'ftp': 'BlockdevOptionsCurlFtp',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue