]> xenbits.xensource.com Git - libvirt.git/commit
qemu: add separate rerror_policy for disk errors
authorLaine Stump <laine@laine.org>
Tue, 4 Oct 2011 18:17:06 +0000 (14:17 -0400)
committerLaine Stump <laine@laine.org>
Thu, 6 Oct 2011 18:49:23 +0000 (14:49 -0400)
commit4bb4109f7b012feedf8b0fb22a9ccd41883e9b7b
tree3f0f25f4fbd9b51154d24030748de6b1a51e3458
parent91195b4321a1508139e36bcafc98201094af05de
qemu: add separate rerror_policy for disk errors

Previously libvirt's disk device XML only had a single attribute,
error_policy, to control both read and write error policy, but qemu
has separate options for controlling read and write. In one case
(enospc) a policy is allowed for write errors but not read errors.

This patch adds a separate attribute that sets only the read error
policy. If just error_policy is set, it will apply to both read and
write error policy (previous behavior), but if the new rerror_policy
attribute is set, it will override error_policy for read errors only.
Possible values for rerror_policy are "stop", "report", and "ignore"
("report" is the qemu-controlled default for rerror_policy when
error_policy isn't specified).

For consistency, the value "report" has been added to the possible
values for error_policy as well.
docs/formatdomain.html.in
docs/schemas/domaincommon.rng
src/conf/domain_conf.c
src/conf/domain_conf.h
src/qemu/qemu_command.c
tests/qemuargv2xmltest.c
tests/qemuxml2argvdata/qemuxml2argv-disk-drive-error-policy-wreport-rignore.args [new file with mode: 0644]
tests/qemuxml2argvdata/qemuxml2argv-disk-drive-error-policy-wreport-rignore.xml [new file with mode: 0644]
tests/qemuxml2argvtest.c