HomeSort by relevance Sort by last modified time
    Searched refs:cluster_offset (Results 1 - 6 of 6) sorted by null

  /external/qemu/block/
qcow.c 79 static int decompress_cluster(BlockDriverState *bs, uint64_t cluster_offset);
259 uint64_t l2_offset, *l2_table, cluster_offset, tmp; local
318 cluster_offset = be64_to_cpu(l2_table[l2_index]);
319 if (!cluster_offset ||
320 ((cluster_offset & QCOW_OFLAG_COMPRESSED) && allocate == 1)) {
324 if ((cluster_offset & QCOW_OFLAG_COMPRESSED) &&
329 if (decompress_cluster(bs, cluster_offset) < 0)
331 cluster_offset = bdrv_getlength(bs->file);
332 cluster_offset = (cluster_offset + s->cluster_size - 1)
384 uint64_t cluster_offset; local
497 uint64_t cluster_offset; member in struct:QCowAIOCB
653 uint64_t cluster_offset; local
862 uint64_t cluster_offset; local
    [all...]
qcow2-cluster.c 350 uint64_t cluster_offset; local
356 &cluster_offset);
362 if (!cluster_offset) {
375 } else if (cluster_offset & QCOW_OFLAG_COMPRESSED) {
376 if (qcow2_decompress_cluster(bs, cluster_offset) < 0)
381 ret = bdrv_pread(bs->file, cluster_offset + index_in_cluster * 512, buf, n * 512);
397 uint64_t cluster_offset, int n_start, int n_end)
416 ret = bdrv_write_sync(bs->file, (cluster_offset >> 9) + n_start,
428 * qcow2 file. The offset is stored in *cluster_offset.
441 int *num, uint64_t *cluster_offset)
602 int64_t cluster_offset; local
672 uint64_t cluster_offset = m->cluster_offset; local
756 int64_t cluster_offset; local
    [all...]
qcow2-refcount.c 462 int64_t start, last, cluster_offset; local
480 for(cluster_offset = start; cluster_offset <= last;
481 cluster_offset += s->cluster_size)
484 int64_t cluster_index = cluster_offset >> s->cluster_bits;
551 dummy = update_refcount(bs, offset, cluster_offset - offset, -addend);
635 int64_t offset, cluster_offset; local
663 cluster_offset = s->free_byte_offset & ~(s->cluster_size - 1);
664 if ((cluster_offset + s->cluster_size) == offset) {
698 uint64_t cluster_offset, int nb_clusters
730 int64_t start, last, cluster_offset; local
896 int64_t start, last, cluster_offset; local
    [all...]
vmdk.c 439 static int get_whole_cluster(BlockDriverState *bs, uint64_t cluster_offset,
460 ret = bdrv_write(bs->file, cluster_offset, whole_grain,
495 uint64_t cluster_offset; local
536 cluster_offset = le32_to_cpu(l2_table[l2_index]);
538 if (!cluster_offset) {
543 cluster_offset = bdrv_getlength(bs->file);
544 bdrv_truncate(bs->file, cluster_offset + (s->cluster_sectors << 9));
546 cluster_offset >>= 9;
547 tmp = cpu_to_le32(cluster_offset);
555 if (get_whole_cluster(bs, cluster_offset, offset, allocate) == -1
575 uint64_t cluster_offset; local
591 uint64_t cluster_offset; local
627 uint64_t cluster_offset; local
    [all...]
qcow2.c 299 uint64_t cluster_offset; local
305 ret = qcow2_get_cluster_offset(bs, sector_num << 9, pnum, &cluster_offset);
310 return (cluster_offset != 0);
336 uint64_t cluster_offset; member in struct:QCowAIOCB
394 if (!acb->cluster_offset) {
396 } else if (acb->cluster_offset & QCOW_OFLAG_COMPRESSED) {
419 &acb->cur_nr_sectors, &acb->cluster_offset);
426 if (!acb->cluster_offset) {
453 } else if (acb->cluster_offset & QCOW_OFLAG_COMPRESSED) {
455 if (qcow2_decompress_cluster(bs, acb->cluster_offset) < 0
1156 uint64_t cluster_offset; local
    [all...]
qcow2.h 138 uint64_t cluster_offset; member in struct:QCowL2Meta
181 uint64_t cluster_offset, int nb_clusters);
193 int qcow2_decompress_cluster(BlockDriverState *bs, uint64_t cluster_offset);
200 int *num, uint64_t *cluster_offset);

Completed in 982 milliseconds