qcow2.c (3c9331c47f22224118d5019b0af8eac704824d8d) | qcow2.c (67a0fd2a9bca204d2b39f910a97c7137636a0715) |
---|---|
1/* 2 * Block driver for the QCOW version 2 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 --- 1316 unchanged lines hidden (view full) --- 1325 qdict_haskey(options, QCOW2_OPT_REFCOUNT_CACHE_SIZE); 1326 1327 if (has_all_cache_options && !has_new_total_cache_size) { 1328 qdict_del(options, QCOW2_OPT_CACHE_SIZE); 1329 } 1330} 1331 1332static int64_t coroutine_fn qcow2_co_get_block_status(BlockDriverState *bs, | 1/* 2 * Block driver for the QCOW version 2 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 --- 1316 unchanged lines hidden (view full) --- 1325 qdict_haskey(options, QCOW2_OPT_REFCOUNT_CACHE_SIZE); 1326 1327 if (has_all_cache_options && !has_new_total_cache_size) { 1328 qdict_del(options, QCOW2_OPT_CACHE_SIZE); 1329 } 1330} 1331 1332static int64_t coroutine_fn qcow2_co_get_block_status(BlockDriverState *bs, |
1333 int64_t sector_num, int nb_sectors, int *pnum) | 1333 int64_t sector_num, int nb_sectors, int *pnum, BlockDriverState **file) |
1334{ 1335 BDRVQcow2State *s = bs->opaque; 1336 uint64_t cluster_offset; 1337 int index_in_cluster, ret; 1338 int64_t status = 0; 1339 1340 *pnum = nb_sectors; 1341 qemu_co_mutex_lock(&s->lock); --- 2031 unchanged lines hidden --- | 1334{ 1335 BDRVQcow2State *s = bs->opaque; 1336 uint64_t cluster_offset; 1337 int index_in_cluster, ret; 1338 int64_t status = 0; 1339 1340 *pnum = nb_sectors; 1341 qemu_co_mutex_lock(&s->lock); --- 2031 unchanged lines hidden --- |