qcow.c (aaffb853359829a37daaf883c773e8320b55c723) qcow.c (b92902dfeaafbceaf744ab7473f2d070284f6172)
1/*
2 * Block driver for the QCOW format
3 *
4 * Copyright (c) 2004-2006 Fabrice Bellard
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a copy
7 * of this software and associated documentation files (the "Software"), to deal
8 * in the Software without restriction, including without limitation the rights

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

929 ret = 0;
930exit:
931 blk_unref(qcow_blk);
932 bdrv_unref(bs);
933 qcrypto_block_free(crypto);
934 return ret;
935}
936
1/*
2 * Block driver for the QCOW format
3 *
4 * Copyright (c) 2004-2006 Fabrice Bellard
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a copy
7 * of this software and associated documentation files (the "Software"), to deal
8 * in the Software without restriction, including without limitation the rights

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

929 ret = 0;
930exit:
931 blk_unref(qcow_blk);
932 bdrv_unref(bs);
933 qcrypto_block_free(crypto);
934 return ret;
935}
936
937static int coroutine_fn qcow_co_create_opts(const char *filename,
937static int coroutine_fn qcow_co_create_opts(BlockDriver *drv,
938 const char *filename,
938 QemuOpts *opts, Error **errp)
939{
940 BlockdevCreateOptions *create_options = NULL;
941 BlockDriverState *bs = NULL;
942 QDict *qdict;
943 Visitor *v;
944 const char *val;
945 Error *local_err = NULL;

--- 262 unchanged lines hidden ---
939 QemuOpts *opts, Error **errp)
940{
941 BlockdevCreateOptions *create_options = NULL;
942 BlockDriverState *bs = NULL;
943 QDict *qdict;
944 Visitor *v;
945 const char *val;
946 Error *local_err = NULL;

--- 262 unchanged lines hidden ---