BlockInterfaceErrorAction drive_get_onerror(BlockDriverState *bdrv)

{

    int index;



    for (index = 0; index < nb_drives; index++)

        if (drives_table[index].bdrv == bdrv)

            return drives_table[index].onerror;



    return BLOCK_ERR_REPORT;

}

BlockInterfaceErrorAction drive_get_onerror(BlockDriverState *bdrv)

{

    int index;



    for (index = 0; index < nb_drives; index++)

        if (drives_table[index].bdrv == bdrv)

            return drives_table[index].onerror;



    return BLOCK_ERR_REPORT;

}

    return BLOCK_ERR_REPORT;
BlockInterfaceErrorAction FUNC_0(BlockDriverState *bdrv)

{

    int VAR_0;



    for (VAR_0 = 0; VAR_0 < nb_drives; VAR_0++)

        if (drives_table[VAR_0].bdrv == bdrv)

            return drives_table[VAR_0].onerror;



    return BLOCK_ERR_REPORT;

}

BlockInterfaceErrorAction FUNC_0(BlockDriverState *bdrv)
{ int VAR_0; for (VAR_0 = 0; VAR_0 < nb_drives; VAR_0++) if (drives_table[VAR_0].bdrv == bdrv)
return drives_table[VAR_0].onerror; return BLOCK_ERR_REPORT; }