static void send_qmp_error_event(BlockDriverState *bs,

                                 BlockErrorAction action,

                                 bool is_read, int error)

{

    IoOperationType optype;



    optype = is_read ? IO_OPERATION_TYPE_READ : IO_OPERATION_TYPE_WRITE;

    qapi_event_send_block_io_error(bdrv_get_device_name(bs), optype, action,

                                   bdrv_iostatus_is_enabled(bs),

                                   error == ENOSPC, strerror(error),

                                   &error_abort);

}

static void send_qmp_error_event(BlockDriverState *bs,

                                 BlockErrorAction action,

                                 bool is_read, int error)

{

    IoOperationType optype;



    optype = is_read ? IO_OPERATION_TYPE_READ : IO_OPERATION_TYPE_WRITE;

    qapi_event_send_block_io_error(bdrv_get_device_name(bs), optype, action,

                                   bdrv_iostatus_is_enabled(bs),

                                   error == ENOSPC, strerror(error),

                                   &error_abort);

}

static void FUNC_0(BlockDriverState *VAR_0,

                                 BlockErrorAction VAR_1,

                                 bool VAR_2, int VAR_3)

{

    IoOperationType optype;



    optype = VAR_2 ? IO_OPERATION_TYPE_READ : IO_OPERATION_TYPE_WRITE;

    qapi_event_send_block_io_error(bdrv_get_device_name(VAR_0), optype, VAR_1,

                                   bdrv_iostatus_is_enabled(VAR_0),

                                   VAR_3 == ENOSPC, strerror(VAR_3),

                                   &error_abort);

}

static void FUNC_0(BlockDriverState *VAR_0,
BlockErrorAction VAR_1,
bool VAR_2, int VAR_3)
{ IoOperationType optype; optype = VAR_2 ? IO_OPERATION_TYPE_READ : IO_OPERATION_TYPE_WRITE; qapi_event_send_block_io_error(bdrv_get_device_name(VAR_0), optype, VAR_1,
bdrv_iostatus_is_enabled(VAR_0),
VAR_3 == ENOSPC, strerror(VAR_3),
&error_abort); }