static int cdrom_open(BlockDriverState *bs, QDict *options, int flags,

                      Error **errp)

{

    BDRVRawState *s = bs->opaque;

    int ret;



    s->type = FTYPE_CD;



    /* open will not fail even if no CD is inserted, so add O_NONBLOCK */

    ret = raw_open_common(bs, options, flags, O_NONBLOCK, errp);

    return ret;

}

static int cdrom_open(BlockDriverState *bs, QDict *options, int flags,

                      Error **errp)

{

    BDRVRawState *s = bs->opaque;

    int ret;



    s->type = FTYPE_CD;



    

    ret = raw_open_common(bs, options, flags, O_NONBLOCK, errp);

    return ret;

}

static int FUNC_0(BlockDriverState *VAR_0, QDict *VAR_1, int VAR_2,

                      Error **VAR_3)

{

    BDRVRawState *s = VAR_0->opaque;

    int VAR_4;



    s->type = FTYPE_CD;



    

    VAR_4 = raw_open_common(VAR_0, VAR_1, VAR_2, O_NONBLOCK, VAR_3);

    return VAR_4;

}

static int FUNC_0(BlockDriverState *VAR_0, QDict *VAR_1, int VAR_2,
Error **VAR_3)
{ BDRVRawState *s = VAR_0->opaque; int VAR_4; s->type = FTYPE_CD; VAR_4 = raw_open_common(VAR_0, VAR_1, VAR_2, O_NONBLOCK, VAR_3); return VAR_4; }