Home | History | Annotate | Download | only in block

Lines Matching refs:cluster_offset

299     uint64_t cluster_offset;
305 ret = qcow2_get_cluster_offset(bs, sector_num << 9, pnum, &cluster_offset);
310 return (cluster_offset != 0);
336 uint64_t cluster_offset;
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)
463 if ((acb->cluster_offset & 511) != 0) {
473 (acb->cluster_offset >> 9) + index_in_cluster,
513 acb->cluster_offset = 0;
596 acb->cluster_offset = acb->l2meta.cluster_offset;
605 assert((acb->cluster_offset & 511) == 0);
623 (acb->cluster_offset >> 9) + index_in_cluster,
803 meta.cluster_offset = 0;
814 qcow2_free_any_clusters(bs, meta.cluster_offset, meta.nb_clusters);
833 if (meta.cluster_offset != 0) {
836 ret = bdrv_write(bs->file, (meta.cluster_offset >> 9) + num - 1, buf, 1);
1156 uint64_t cluster_offset;
1161 cluster_offset = bdrv_getlength(bs->file);
1162 cluster_offset = (cluster_offset + 511) & ~511;
1163 bdrv_truncate(bs->file, cluster_offset);
1201 cluster_offset = qcow2_alloc_compressed_cluster_offset(bs,
1203 if (!cluster_offset)
1205 cluster_offset &= s->cluster_offset_mask;
1207 if (bdrv_pwrite(bs->file, cluster_offset, out_buf, out_len) != out_len) {