Lines Matching refs:create_options
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()
2142 create_options->u.vhdx.block_size = in vhdx_co_create_opts()
2143 ROUND_UP(create_options->u.vhdx.block_size, MiB); in vhdx_co_create_opts()
2145 if (create_options->u.vhdx.block_size == 0) { in vhdx_co_create_opts()
2146 create_options->u.vhdx.has_block_size = false; in vhdx_co_create_opts()
2148 if (create_options->u.vhdx.block_size > VHDX_BLOCK_SIZE_MAX) { in vhdx_co_create_opts()
2149 create_options->u.vhdx.block_size = VHDX_BLOCK_SIZE_MAX; in vhdx_co_create_opts()
2154 ret = vhdx_co_create(create_options, errp); in vhdx_co_create_opts()
2159 qapi_free_BlockdevCreateOptions(create_options); in vhdx_co_create_opts()