Patchwork [FOR,0.12] Revert "Rename DriveInfo.onerror to on_write_error" (fix mismerge)

login
register
mail settings
Submitter Kevin Wolf
Date Dec. 4, 2009, 11:06 a.m.
Message ID <1259924792-11124-1-git-send-email-kwolf@redhat.com>
Download mbox | patch
Permalink /patch/40321/
State New
Headers show

Comments

Kevin Wolf - Dec. 4, 2009, 11:06 a.m.
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>
---
 vl.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)
Anthony Liguori - Dec. 4, 2009, 2:02 p.m.
Kevin Wolf wrote:
> 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>
>   

Thanks.

Regards,

Anthony Liguori

Patch

diff --git a/vl.c b/vl.c
index 96ab020..d6f196c 100644
--- a/vl.c
+++ b/vl.c
@@ -1964,10 +1964,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;