static void encrypted_bdrv_it(void *opaque, BlockDriverState *bs)

{

    Error **errp = opaque;



    if (!error_is_set(errp) && bdrv_key_required(bs)) {

        error_set(errp, QERR_DEVICE_ENCRYPTED, bdrv_get_device_name(bs),

                  bdrv_get_encrypted_filename(bs));

    }

}

static void encrypted_bdrv_it(void *opaque, BlockDriverState *bs)

{

    Error **errp = opaque;



    if (!error_is_set(errp) && bdrv_key_required(bs)) {

        error_set(errp, QERR_DEVICE_ENCRYPTED, bdrv_get_device_name(bs),

                  bdrv_get_encrypted_filename(bs));

    }

}

static void FUNC_0(void *VAR_0, BlockDriverState *VAR_1)

{

    Error **errp = VAR_0;



    if (!error_is_set(errp) && bdrv_key_required(VAR_1)) {

        error_set(errp, QERR_DEVICE_ENCRYPTED, bdrv_get_device_name(VAR_1),

                  bdrv_get_encrypted_filename(VAR_1));

    }

}

static void FUNC_0(void *VAR_0, BlockDriverState *VAR_1)
{ Error **errp = VAR_0; if (!error_is_set(errp) && bdrv_key_required(VAR_1)) { error_set(errp, QERR_DEVICE_ENCRYPTED, bdrv_get_device_name(VAR_1),
bdrv_get_encrypted_filename(VAR_1)); } }