]> git.ipfire.org Git - thirdparty/qemu.git/commit
block/blklogwrites: Add an option for the update interval of the log superblock
authorAri Sundholm <ari@tuxera.com>
Wed, 4 Jul 2018 14:59:36 +0000 (17:59 +0300)
committerKevin Wolf <kwolf@redhat.com>
Thu, 5 Jul 2018 08:50:21 +0000 (10:50 +0200)
commit1dce698ea85bb18f62e4c540d4db628bacfba6ba
tree1806b6bba47728cc6ef53b87acd3b410cd1b7fb7
parent0878b3c113145d4e01d65aadd4efaf097a3fda4b
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>
block/blklogwrites.c
qapi/block-core.json