void bdrv_set_on_error(BlockDriverState *bs, BlockdevOnError on_read_error,

                       BlockdevOnError on_write_error)

{

    bs->on_read_error = on_read_error;

    bs->on_write_error = on_write_error;

}

void bdrv_set_on_error(BlockDriverState *bs, BlockdevOnError on_read_error,

                       BlockdevOnError on_write_error)

{

    bs->on_read_error = on_read_error;

    bs->on_write_error = on_write_error;

}

void FUNC_0(BlockDriverState *VAR_0, BlockdevOnError VAR_1,

                       BlockdevOnError VAR_2)

{

    VAR_0->VAR_1 = VAR_1;

    VAR_0->VAR_2 = VAR_2;

}

void FUNC_0(BlockDriverState *VAR_0, BlockdevOnError VAR_1,
BlockdevOnError VAR_2)
{ VAR_0->VAR_1 = VAR_1; VAR_0->VAR_2 = VAR_2; }