Home | History | Annotate | Download | only in block

Lines Matching refs:sector_num

570 static int vmdk_is_allocated(BlockDriverState *bs, int64_t sector_num,
577 cluster_offset = get_cluster_offset(bs, NULL, sector_num << 9, 0);
578 index_in_cluster = sector_num % s->cluster_sectors;
586 static int vmdk_read(BlockDriverState *bs, int64_t sector_num,
594 cluster_offset = get_cluster_offset(bs, NULL, sector_num << 9, 0);
595 index_in_cluster = sector_num % s->cluster_sectors;
604 ret = bdrv_read(bs->backing_hd, sector_num, buf, n);
615 sector_num += n;
621 static int vmdk_write(BlockDriverState *bs, int64_t sector_num,
630 if (sector_num > bs->total_sectors) {
632 "(VMDK) Wrong offset: sector_num=0x%" PRIx64
634 sector_num, bs->total_sectors);
639 index_in_cluster = sector_num & (s->cluster_sectors - 1);
643 cluster_offset = get_cluster_offset(bs, &m_data, sector_num << 9, 1);
655 sector_num += n;