/qemu/block/ |
H A D | vdi.c | 740 vdi_co_do_create(BlockdevCreateOptions *create_options, size_t block_size, in vdi_co_do_create() argument 758 assert(create_options->driver == BLOCKDEV_DRIVER_VDI); in vdi_co_do_create() 759 vdi_opts = &create_options->u.vdi; in vdi_co_do_create() 900 vdi_co_create(BlockdevCreateOptions *create_options, Error **errp) in vdi_co_create() argument 902 return vdi_co_do_create(create_options, DEFAULT_CLUSTER_SIZE, errp); in vdi_co_create() 910 BlockdevCreateOptions *create_options = NULL; in vdi_co_create_opts() local 965 visit_type_BlockdevCreateOptions(v, NULL, &create_options, errp); in vdi_co_create_opts() 967 if (!create_options) { in vdi_co_create_opts() 973 assert(create_options->driver == BLOCKDEV_DRIVER_VDI); in vdi_co_create_opts() 974 create_options->u.vdi.size = ROUND_UP(create_options->u.vdi.size, in vdi_co_create_opts() [all …]
|
H A D | vhdx.c | 2077 BlockdevCreateOptions *create_options = NULL; in vhdx_co_create_opts() local 2121 visit_type_BlockdevCreateOptions(v, NULL, &create_options, errp); in vhdx_co_create_opts() 2123 if (!create_options) { in vhdx_co_create_opts() 2133 assert(create_options->driver == BLOCKDEV_DRIVER_VHDX); in vhdx_co_create_opts() 2134 create_options->u.vhdx.size = in vhdx_co_create_opts() 2135 ROUND_UP(create_options->u.vhdx.size, BDRV_SECTOR_SIZE); in vhdx_co_create_opts() 2137 if (create_options->u.vhdx.has_log_size) { in vhdx_co_create_opts() 2138 create_options->u.vhdx.log_size = in vhdx_co_create_opts() 2139 ROUND_UP(create_options->u.vhdx.log_size, MiB); in vhdx_co_create_opts() 2141 if (create_options->u.vhdx.has_block_size) { in vhdx_co_create_opts() [all …]
|
H A D | vpc.c | 1101 BlockdevCreateOptions *create_options = NULL; in vpc_co_create_opts() local 1143 visit_type_BlockdevCreateOptions(v, NULL, &create_options, errp); in vpc_co_create_opts() 1145 if (!create_options) { in vpc_co_create_opts() 1151 assert(create_options->driver == BLOCKDEV_DRIVER_VPC); in vpc_co_create_opts() 1152 create_options->u.vpc.size = in vpc_co_create_opts() 1153 ROUND_UP(create_options->u.vpc.size, BDRV_SECTOR_SIZE); in vpc_co_create_opts() 1155 if (!create_options->u.vpc.force_size) { in vpc_co_create_opts() 1157 ret = calculate_rounded_image_size(&create_options->u.vpc, NULL, NULL, in vpc_co_create_opts() 1163 create_options->u.vpc.size = total_sectors * BDRV_SECTOR_SIZE; in vpc_co_create_opts() 1168 ret = vpc_co_create(create_options, errp); in vpc_co_create_opts() [all …]
|
H A D | parallels.c | 1099 BlockdevCreateOptions *create_options = NULL; in parallels_co_create_opts() local 1142 visit_type_BlockdevCreateOptions(v, NULL, &create_options, errp); in parallels_co_create_opts() 1144 if (!create_options) { in parallels_co_create_opts() 1150 create_options->u.parallels.size = in parallels_co_create_opts() 1151 ROUND_UP(create_options->u.parallels.size, BDRV_SECTOR_SIZE); in parallels_co_create_opts() 1152 create_options->u.parallels.cluster_size = in parallels_co_create_opts() 1153 ROUND_UP(create_options->u.parallels.cluster_size, BDRV_SECTOR_SIZE); in parallels_co_create_opts() 1156 ret = parallels_co_create(create_options, errp); in parallels_co_create_opts() 1165 qapi_free_BlockdevCreateOptions(create_options); in parallels_co_create_opts()
|
H A D | qcow.c | 935 BlockdevCreateOptions *create_options = NULL; in qcow_co_create_opts() local 1003 visit_type_BlockdevCreateOptions(v, NULL, &create_options, errp); in qcow_co_create_opts() 1005 if (!create_options) { in qcow_co_create_opts() 1011 assert(create_options->driver == BLOCKDEV_DRIVER_QCOW); in qcow_co_create_opts() 1012 create_options->u.qcow.size = in qcow_co_create_opts() 1013 ROUND_UP(create_options->u.qcow.size, BDRV_SECTOR_SIZE); in qcow_co_create_opts() 1016 ret = qcow_co_create(create_options, errp); in qcow_co_create_opts() 1026 qapi_free_BlockdevCreateOptions(create_options); in qcow_co_create_opts()
|
H A D | nfs.c | 669 BlockdevCreateOptions *create_options; in nfs_file_co_create_opts() local 674 create_options = g_new0(BlockdevCreateOptions, 1); in nfs_file_co_create_opts() 675 create_options->driver = BLOCKDEV_DRIVER_NFS; in nfs_file_co_create_opts() 676 nfs_opts = &create_options->u.nfs; in nfs_file_co_create_opts() 694 ret = nfs_file_co_create(create_options, errp); in nfs_file_co_create_opts() 702 qapi_free_BlockdevCreateOptions(create_options); in nfs_file_co_create_opts()
|
H A D | qed.c | 768 BlockdevCreateOptions *create_options = NULL; in bdrv_qed_co_create_opts() local 813 visit_type_BlockdevCreateOptions(v, NULL, &create_options, errp); in bdrv_qed_co_create_opts() 815 if (!create_options) { in bdrv_qed_co_create_opts() 821 assert(create_options->driver == BLOCKDEV_DRIVER_QED); in bdrv_qed_co_create_opts() 822 create_options->u.qed.size = in bdrv_qed_co_create_opts() 823 ROUND_UP(create_options->u.qed.size, BDRV_SECTOR_SIZE); in bdrv_qed_co_create_opts() 826 ret = bdrv_qed_co_create(create_options, errp); in bdrv_qed_co_create_opts() 831 qapi_free_BlockdevCreateOptions(create_options); in bdrv_qed_co_create_opts()
|
H A D | ssh.c | 958 BlockdevCreateOptions *create_options; in ssh_co_create_opts() local 963 create_options = g_new0(BlockdevCreateOptions, 1); in ssh_co_create_opts() 964 create_options->driver = BLOCKDEV_DRIVER_SSH; in ssh_co_create_opts() 965 ssh_opts = &create_options->u.ssh; in ssh_co_create_opts() 984 ret = ssh_co_create(create_options, errp); in ssh_co_create_opts() 988 qapi_free_BlockdevCreateOptions(create_options); in ssh_co_create_opts()
|
H A D | rbd.c | 799 BlockdevCreateOptions *create_options; in qemu_rbd_co_create_opts() local 808 create_options = g_new0(BlockdevCreateOptions, 1); in qemu_rbd_co_create_opts() 809 create_options->driver = BLOCKDEV_DRIVER_RBD; in qemu_rbd_co_create_opts() 810 rbd_opts = &create_options->u.rbd; in qemu_rbd_co_create_opts() 851 ret = qemu_rbd_do_create(create_options, keypairs, password_secret, errp); in qemu_rbd_co_create_opts() 858 qapi_free_BlockdevCreateOptions(create_options); in qemu_rbd_co_create_opts()
|
H A D | crypto.c | 700 block_crypto_co_create_luks(BlockdevCreateOptions *create_options, Error **errp) in block_crypto_co_create_luks() argument 710 assert(create_options->driver == BLOCKDEV_DRIVER_LUKS); in block_crypto_co_create_luks() 711 luks_opts = &create_options->u.luks; in block_crypto_co_create_luks()
|
H A D | qcow2.c | 3502 qcow2_co_create(BlockdevCreateOptions *create_options, Error **errp) in qcow2_co_create() 3531 assert(create_options->driver == BLOCKDEV_DRIVER_QCOW2); in qcow2_co_create() 3532 qcow2_opts = &create_options->u.qcow2; in qcow2_co_create() 3903 BlockdevCreateOptions *create_options = NULL; in qcow2_co_create_opts() 4004 visit_type_BlockdevCreateOptions(v, NULL, &create_options, errp); in qcow2_co_create_opts() 4006 if (!create_options) { in qcow2_co_create_opts() 4012 create_options->u.qcow2.size = ROUND_UP(create_options->u.qcow2.size, in qcow2_co_create_opts() 4016 ret = qcow2_co_create(create_options, errp); in qcow2_co_create_opts() 4030 qapi_free_BlockdevCreateOptions(create_options); 3498 qcow2_co_create(BlockdevCreateOptions * create_options,Error ** errp) qcow2_co_create() argument 3899 BlockdevCreateOptions *create_options = NULL; qcow2_co_create_opts() local [all...] |
H A D | vmdk.c | 2871 vmdk_co_create(BlockdevCreateOptions *create_options, Error **errp) in vmdk_co_create() 2875 opts = &create_options->u.vmdk; in vmdk_co_create() 2861 vmdk_co_create(BlockdevCreateOptions * create_options,Error ** errp) vmdk_co_create() argument
|