static BlockAIOCB *read_quorum_children(QuorumAIOCB *acb)

{

    BDRVQuorumState *s = acb->common.bs->opaque;

    int i;



    for (i = 0; i < s->num_children; i++) {

        acb->qcrs[i].buf = qemu_blockalign(s->children[i]->bs, acb->qiov->size);

        qemu_iovec_init(&acb->qcrs[i].qiov, acb->qiov->niov);

        qemu_iovec_clone(&acb->qcrs[i].qiov, acb->qiov, acb->qcrs[i].buf);

    }



    for (i = 0; i < s->num_children; i++) {

        bdrv_aio_readv(s->children[i]->bs, acb->sector_num, &acb->qcrs[i].qiov,

                       acb->nb_sectors, quorum_aio_cb, &acb->qcrs[i]);

    }



    return &acb->common;

}

static BlockAIOCB *read_quorum_children(QuorumAIOCB *acb)

{

    BDRVQuorumState *s = acb->common.bs->opaque;

    int i;



    for (i = 0; i < s->num_children; i++) {

        acb->qcrs[i].buf = qemu_blockalign(s->children[i]->bs, acb->qiov->size);

        qemu_iovec_init(&acb->qcrs[i].qiov, acb->qiov->niov);

        qemu_iovec_clone(&acb->qcrs[i].qiov, acb->qiov, acb->qcrs[i].buf);

    }



    for (i = 0; i < s->num_children; i++) {

        bdrv_aio_readv(s->children[i]->bs, acb->sector_num, &acb->qcrs[i].qiov,

                       acb->nb_sectors, quorum_aio_cb, &acb->qcrs[i]);

    }



    return &acb->common;

}

        bdrv_aio_readv(s->children[i]->bs, acb->sector_num, &acb->qcrs[i].qiov,                        acb->nb_sectors, quorum_aio_cb, &acb->qcrs[i]);
static BlockAIOCB *FUNC_0(QuorumAIOCB *acb)

{

    BDRVQuorumState *s = acb->common.bs->opaque;

    int VAR_0;



    for (VAR_0 = 0; VAR_0 < s->num_children; VAR_0++) {

        acb->qcrs[VAR_0].buf = qemu_blockalign(s->children[VAR_0]->bs, acb->qiov->size);

        qemu_iovec_init(&acb->qcrs[VAR_0].qiov, acb->qiov->niov);

        qemu_iovec_clone(&acb->qcrs[VAR_0].qiov, acb->qiov, acb->qcrs[VAR_0].buf);

    }



    for (VAR_0 = 0; VAR_0 < s->num_children; VAR_0++) {

        bdrv_aio_readv(s->children[VAR_0]->bs, acb->sector_num, &acb->qcrs[VAR_0].qiov,

                       acb->nb_sectors, quorum_aio_cb, &acb->qcrs[VAR_0]);

    }



    return &acb->common;

}

static BlockAIOCB *FUNC_0(QuorumAIOCB *acb)
{ BDRVQuorumState *s = acb->common.bs->opaque; int VAR_0; for (VAR_0 = 0; VAR_0 < s->num_children; VAR_0++) { acb->qcrs[VAR_0].buf = qemu_blockalign(s->children[VAR_0]->bs, acb->qiov->size); qemu_iovec_init(&acb->qcrs[VAR_0].qiov, acb->qiov->niov); qemu_iovec_clone(&acb->qcrs[VAR_0].qiov, acb->qiov, acb->qcrs[VAR_0].buf); } for (VAR_0 = 0; VAR_0 < s->num_children; VAR_0++) { bdrv_aio_readv(s->children[VAR_0]->bs, acb->sector_num, &acb->qcrs[VAR_0].qiov,
acb->nb_sectors, quorum_aio_cb, &acb->qcrs[VAR_0]); } return &acb->common; }