Home
last modified time | relevance | path

Searched refs:cluster_sectors (Results 1 – 5 of 5) sorted by relevance

/external/qemu/block/
Dvmdk.c77 unsigned int cluster_sectors; member
390 s->cluster_sectors = le32_to_cpu(header.granularity); in vmdk_open()
396 s->l1_entry_sectors = s->l2_size * s->cluster_sectors; in vmdk_open()
403 s->cluster_sectors = le64_to_cpu(header.granularity); in vmdk_open()
405 s->l1_entry_sectors = s->l2_size * s->cluster_sectors; in vmdk_open()
463 …uint8_t whole_grain[s->cluster_sectors*512]; // 128 sectors * 512 bytes each = grain size … in get_whole_cluster()
478 …_pread(ps->hd, parent_cluster_offset, whole_grain, ps->cluster_sectors*512) != ps->cluster_sectors in get_whole_cluster()
555 l2_index = ((offset >> 9) / s->cluster_sectors) % s->l2_size; in get_cluster_offset()
564 bdrv_truncate(s->hd, cluster_offset + (s->cluster_sectors << 9)); in get_cluster_offset()
601 index_in_cluster = sector_num % s->cluster_sectors; in vmdk_is_allocated()
[all …]
Dqcow.c60 int cluster_sectors; member
124 s->cluster_sectors = 1 << (s->cluster_bits - 9); in qcow_open()
328 (n_end - n_start) < s->cluster_sectors) { in get_cluster_offset()
351 (n_end - n_start) < s->cluster_sectors) { in get_cluster_offset()
355 for(i = 0; i < s->cluster_sectors; i++) { in get_cluster_offset()
390 index_in_cluster = sector_num & (s->cluster_sectors - 1); in qcow_is_allocated()
391 n = s->cluster_sectors - index_in_cluster; in qcow_is_allocated()
457 index_in_cluster = sector_num & (s->cluster_sectors - 1);
458 n = s->cluster_sectors - index_in_cluster;
582 index_in_cluster = acb->sector_num & (s->cluster_sectors - 1); in qcow_aio_read_cb()
[all …]
Dqcow2-cluster.c319 index_in_cluster = sector_num & (s->cluster_sectors - 1); in qcow_read()
403 index_in_cluster = (offset >> 9) & (s->cluster_sectors - 1); in qcow2_get_cluster_offset()
459 nb_available = (c * s->cluster_sectors); in qcow2_get_cluster_offset()
623 if (m->nb_available & (s->cluster_sectors - 1)) { in qcow2_alloc_cluster_link_l2()
624 uint64_t end = m->nb_available & ~(uint64_t)(s->cluster_sectors - 1); in qcow2_alloc_cluster_link_l2()
626 m->nb_available - end, s->cluster_sectors); in qcow2_alloc_cluster_link_l2()
Dqcow2.c192 s->cluster_sectors = 1 << (s->cluster_bits - 9); in qcow_open()
428 index_in_cluster = acb->sector_num & (s->cluster_sectors - 1); in qcow_aio_read_cb()
560 index_in_cluster = acb->sector_num & (s->cluster_sectors - 1); in qcow_aio_write_cb()
563 n_end > QCOW_MAX_CRYPT_CLUSTERS * s->cluster_sectors) in qcow_aio_write_cb()
564 n_end = QCOW_MAX_CRYPT_CLUSTERS * s->cluster_sectors; in qcow_aio_write_cb()
849 if (nb_sectors != s->cluster_sectors) in qcow_write_compressed()
881 bdrv_write(bs, sector_num, buf, s->cluster_sectors); in qcow_write_compressed()
Dqcow2.h81 int cluster_sectors; member