Lines Matching refs:cluster_sectors
77 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()
602 n = s->cluster_sectors - index_in_cluster; in vmdk_is_allocated()
618 index_in_cluster = sector_num % s->cluster_sectors; in vmdk_read()
619 n = s->cluster_sectors - index_in_cluster; in vmdk_read()
662 index_in_cluster = sector_num & (s->cluster_sectors - 1); in vmdk_write()
663 n = s->cluster_sectors - index_in_cluster; in vmdk_write()