• P
    mirror: add support for on-source-error/on-target-error · b952b558
    Paolo Bonzini 提交于
    Error management is important for mirroring; otherwise, an error on the
    target (even something as "innocent" as ENOSPC) requires to start again
    with a full copy.  Similar to on_read_error/on_write_error, two separate
    knobs are provided for on_source_error (reads) and on_target_error (writes).
    The default is 'report' for both.
    
    The 'ignore' policy will leave the sector dirty, so that it will be
    retried later.  Thus, it will not cause corruption.
    Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
    Signed-off-by: NKevin Wolf <kwolf@redhat.com>
    b952b558
block_int.h 13.9 KB