summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Wolf <kwolf@redhat.com>2009-12-04 12:06:32 +0100
committerAnthony Liguori <aliguori@us.ibm.com>2009-12-19 08:26:20 -0600
commitbed93b1dcbd57f0bd6fc06d25244287c4b33e024 (patch)
treee892b9d441f2cda3c9280cf4f760f227b5a1eef4
parent73b4ac5cd818910cb81639aa40fb115d5fc3b8db (diff)
downloadqemu-bed93b1dcbd57f0bd6fc06d25244287c4b33e024.tar.gz
Revert "Rename DriveInfo.onerror to on_write_error" (fix mismerge)
Part of the first patch of the -drive rerror series has been merged once more on top of the rest of the series. This effectively disables the rerror option and always goes with the default value. Reverting the commit re-enables the option. This reverts commit fc072ec4df0996682dfbff6c735e2bbc0d93132f. Signed-off-by: Kevin Wolf <kwolf@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> (cherry picked from commit 75f124753922451ee697defd81a80a91ce3f9888)
-rw-r--r--vl.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/vl.c b/vl.c
index 49735129f2..20c616e906 100644
--- a/vl.c
+++ b/vl.c
@@ -2044,10 +2044,6 @@ BlockInterfaceErrorAction drive_get_on_error(
{
DriveInfo *dinfo;
- if (is_read) {
- return BLOCK_ERR_REPORT;
- }
-
QTAILQ_FOREACH(dinfo, &drives, next) {
if (dinfo->bdrv == bdrv)
return is_read ? dinfo->on_read_error : dinfo->on_write_error;