Revision ef845c3b block/qcow2-cluster.c
b/block/qcow2-cluster.c | ||
---|---|---|
306 | 306 |
} |
307 | 307 |
|
308 | 308 |
|
309 |
static int qcow_read(BlockDriverState *bs, int64_t sector_num,
|
|
310 |
uint8_t *buf, int nb_sectors)
|
|
309 |
int qcow2_read(BlockDriverState *bs, int64_t sector_num, uint8_t *buf,
|
|
310 |
int nb_sectors) |
|
311 | 311 |
{ |
312 | 312 |
BDRVQcowState *s = bs->opaque; |
313 | 313 |
int ret, index_in_cluster, n, n1; |
... | ... | |
358 | 358 |
n = n_end - n_start; |
359 | 359 |
if (n <= 0) |
360 | 360 |
return 0; |
361 |
ret = qcow_read(bs, start_sect + n_start, s->cluster_data, n); |
|
361 |
ret = qcow2_read(bs, start_sect + n_start, s->cluster_data, n);
|
|
362 | 362 |
if (ret < 0) |
363 | 363 |
return ret; |
364 | 364 |
if (s->crypt_method) { |
Also available in: Unified diff