mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
block/blklogwrites: Add an option for the update interval of the log superblock
This is a way to ensure that the log superblock is periodically updated. Before, this was only done on flush requests, which may not be enough if the VM exits abnormally, omitting the final flush. The default interval is 4096 write requests. Signed-off-by: Ari Sundholm <ari@tuxera.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
parent
0878b3c113
commit
1dce698ea8
2 changed files with 23 additions and 3 deletions
|
@ -3057,13 +3057,17 @@
|
|||
# @log-sector-size: sector size used in logging writes to @file, determines
|
||||
# granularity of offsets and sizes of writes (default: 512)
|
||||
#
|
||||
# @log-super-update-interval: interval of write requests after which the log
|
||||
# super block is updated to disk (default: 4096)
|
||||
#
|
||||
# Since: 3.0
|
||||
##
|
||||
{ 'struct': 'BlockdevOptionsBlklogwrites',
|
||||
'data': { 'file': 'BlockdevRef',
|
||||
'log': 'BlockdevRef',
|
||||
'*log-sector-size': 'uint32',
|
||||
'*log-append': 'bool' } }
|
||||
'*log-append': 'bool',
|
||||
'*log-super-update-interval': 'uint64' } }
|
||||
|
||||
##
|
||||
# @BlockdevOptionsBlkverify:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue