int blk_insert_bs(BlockBackend *blk, BlockDriverState *bs, Error **errp)

{

    blk->root = bdrv_root_attach_child(bs, "root", &child_root,

                                       blk->perm, blk->shared_perm, blk, errp);

    if (blk->root == NULL) {

        return -EPERM;

    }

    bdrv_ref(bs);



    notifier_list_notify(&blk->insert_bs_notifiers, blk);

    if (blk->public.throttle_group_member.throttle_state) {

        throttle_timers_attach_aio_context(

            &blk->public.throttle_group_member.throttle_timers,

            bdrv_get_aio_context(bs));

    }



    return 0;

}

int blk_insert_bs(BlockBackend *blk, BlockDriverState *bs, Error **errp)

{

    blk->root = bdrv_root_attach_child(bs, "root", &child_root,

                                       blk->perm, blk->shared_perm, blk, errp);

    if (blk->root == NULL) {

        return -EPERM;

    }

    bdrv_ref(bs);



    notifier_list_notify(&blk->insert_bs_notifiers, blk);

    if (blk->public.throttle_group_member.throttle_state) {

        throttle_timers_attach_aio_context(

            &blk->public.throttle_group_member.throttle_timers,

            bdrv_get_aio_context(bs));

    }



    return 0;

}

    if (blk->public.throttle_group_member.throttle_state) {     if (blk->public.throttle_group_member.throttle_state) {         throttle_timers_attach_aio_context(             &blk->public.throttle_group_member.throttle_timers,             bdrv_get_aio_context(bs));
int FUNC_0(BlockBackend *VAR_0, BlockDriverState *VAR_1, Error **VAR_2)

{

    VAR_0->root = bdrv_root_attach_child(VAR_1, "root", &child_root,

                                       VAR_0->perm, VAR_0->shared_perm, VAR_0, VAR_2);

    if (VAR_0->root == NULL) {

        return -EPERM;

    }

    bdrv_ref(VAR_1);



    notifier_list_notify(&VAR_0->insert_bs_notifiers, VAR_0);

    if (VAR_0->public.throttle_group_member.throttle_state) {

        throttle_timers_attach_aio_context(

            &VAR_0->public.throttle_group_member.throttle_timers,

            bdrv_get_aio_context(VAR_1));

    }



    return 0;

}

int FUNC_0(BlockBackend *VAR_0, BlockDriverState *VAR_1, Error **VAR_2)
{ VAR_0->root = bdrv_root_attach_child(VAR_1, "root", &child_root,
VAR_0->perm, VAR_0->shared_perm, VAR_0, VAR_2); if (VAR_0->root == NULL) { return -EPERM; } bdrv_ref(VAR_1); notifier_list_notify(&VAR_0->insert_bs_notifiers, VAR_0); if (VAR_0->public.throttle_group_member.throttle_state) { throttle_timers_attach_aio_context(
&VAR_0->public.throttle_group_member.throttle_timers,
bdrv_get_aio_context(VAR_1)); } return 0; }