Lines Matching refs:total_sectors
891 uint64_t virtual_disk_size = bs->total_sectors * BDRV_SECTOR_SIZE; in read_cache_sizes()
1530 bs->total_sectors = header.size / BDRV_SECTOR_SIZE; in qcow2_do_open()
2944 total_size = bs->total_sectors * BDRV_SECTOR_SIZE; in qcow2_update_header()
4038 if (offset + bytes > bs->total_sectors * BDRV_SECTOR_SIZE) { in is_zero()
4039 bytes = bs->total_sectors * BDRV_SECTOR_SIZE - offset; in is_zero()
4073 if (offset + bytes == bs->total_sectors * BDRV_SECTOR_SIZE) { in qcow2_co_pwrite_zeroes()
4134 offset + bytes != bs->total_sectors * BDRV_SECTOR_SIZE) { in qcow2_co_pdiscard()
4340 old_length = bs->total_sectors * BDRV_SECTOR_SIZE; in qcow2_co_truncate()
4648 bs->total_sectors = offset / BDRV_SECTOR_SIZE; in qcow2_co_truncate()
4686 (offset + bytes == bs->total_sectors << BDRV_SECTOR_BITS))); in qcow2_co_pwritev_compressed_task()
4789 (offset + bytes) != (bs->total_sectors << BDRV_SECTOR_BITS)) { in qcow2_co_pwritev_compressed_part()
5042 end_offset = bs->total_sectors * BDRV_SECTOR_SIZE; in qcow2_make_empty()
5480 s->snapshots[i].disk_size != bs->total_sectors * BDRV_SECTOR_SIZE) { in qcow2_downgrade()