Lines Matching refs:create_options
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()
1173 qapi_free_BlockdevCreateOptions(create_options); in vpc_co_create_opts()