vdi.c (aaffb853359829a37daaf883c773e8320b55c723) vdi.c (b92902dfeaafbceaf744ab7473f2d070284f6172)
1/*
2 * Block driver for the Virtual Disk Image (VDI) format
3 *
4 * Copyright (c) 2009, 2012 Stefan Weil
5 *
6 * This program is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, either version 2 of the License, or

--- 882 unchanged lines hidden (view full) ---

891}
892
893static int coroutine_fn vdi_co_create(BlockdevCreateOptions *create_options,
894 Error **errp)
895{
896 return vdi_co_do_create(create_options, DEFAULT_CLUSTER_SIZE, errp);
897}
898
1/*
2 * Block driver for the Virtual Disk Image (VDI) format
3 *
4 * Copyright (c) 2009, 2012 Stefan Weil
5 *
6 * This program is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, either version 2 of the License, or

--- 882 unchanged lines hidden (view full) ---

891}
892
893static int coroutine_fn vdi_co_create(BlockdevCreateOptions *create_options,
894 Error **errp)
895{
896 return vdi_co_do_create(create_options, DEFAULT_CLUSTER_SIZE, errp);
897}
898
899static int coroutine_fn vdi_co_create_opts(const char *filename, QemuOpts *opts,
899static int coroutine_fn vdi_co_create_opts(BlockDriver *drv,
900 const char *filename,
901 QemuOpts *opts,
900 Error **errp)
901{
902 QDict *qdict = NULL;
903 BlockdevCreateOptions *create_options = NULL;
904 BlockDriverState *bs_file = NULL;
905 uint64_t block_size = DEFAULT_CLUSTER_SIZE;
906 bool is_static = false;
907 Visitor *v;

--- 157 unchanged lines hidden ---
902 Error **errp)
903{
904 QDict *qdict = NULL;
905 BlockdevCreateOptions *create_options = NULL;
906 BlockDriverState *bs_file = NULL;
907 uint64_t block_size = DEFAULT_CLUSTER_SIZE;
908 bool is_static = false;
909 Visitor *v;

--- 157 unchanged lines hidden ---