[libvirt] support for qemu werror and rerror

Laine Stump laine at laine.org
Thu Sep 29 13:38:22 UTC 2016


On 09/29/2016 08:35 AM, Vasiliy Tolstov wrote:
> Sometimes ago qemu anounced support for action for disk:
>
> werror=action,rerror=action
>
> Specify which action to take on write and read errors. Valid actions
> are: "ignore" (ignore the error and try to continue), "stop" (pause
> QEMU), "report" (report the error to the guest), "enospc" (pause QEMU
> only if the host disk is full; report the error to the guest
> otherwise). The default setting iswerror=enospc and rerror=report.
>
> Does somebody can write this support to libvirt ? Or how can i enable
> werror and rerror ?
>

Support is already there (since libvirt-0.9.7), handled by the 
error_policy, and rerror_policy attributes of the <driver> subelement of 
a disk. search for "rerror_policy" in 
http://www.libvirt.org/formatdomain.html for details.





More information about the libvir-list mailing list