]> git.proxmox.com Git - mirror_qemu.git/commit - qapi/block-core.json
quorum: Add the rewrite-corrupted parameter to quorum
authorBenoît Canet <benoit.canet@irqsave.net>
Wed, 11 Jun 2014 13:24:10 +0000 (15:24 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 27 Jun 2014 12:18:17 +0000 (14:18 +0200)
commitcf29a570a7aa7abab66bf256fdf9540873590811
tree7a3750f92393a6567ba80a9a04705687d871fe19
parentd1fde4ad3c22137f8e589e625c21bf2ea7f6ba62
quorum: Add the rewrite-corrupted parameter to quorum

On read operations when this parameter is set and some replicas are corrupted
while quorum can be reached quorum will proceed to rewrite the correct version
of the data to fix the corrupted replicas.

This will shine with SSD where the FTL will remap the same block at another
place on rewrite.

Signed-off-by: Benoit Canet <benoit@irqsave.net>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/quorum.c
qapi/block-core.json
tests/qemu-iotests/081
tests/qemu-iotests/081.out