• Home
  • Raw
  • Download

Lines Matching refs:cluster_offset

314     uint64_t cluster_offset;  in qcow_is_allocated()  local
317 cluster_offset = qcow2_get_cluster_offset(bs, sector_num << 9, pnum); in qcow_is_allocated()
319 return (cluster_offset != 0); in qcow_is_allocated()
345 uint64_t cluster_offset; member
402 if (!acb->cluster_offset) { in qcow_aio_read_cb()
404 } else if (acb->cluster_offset & QCOW_OFLAG_COMPRESSED) { in qcow_aio_read_cb()
426 acb->cluster_offset = in qcow_aio_read_cb()
430 if (!acb->cluster_offset) { in qcow_aio_read_cb()
456 } else if (acb->cluster_offset & QCOW_OFLAG_COMPRESSED) { in qcow_aio_read_cb()
458 if (qcow2_decompress_cluster(s, acb->cluster_offset) < 0) in qcow_aio_read_cb()
466 if ((acb->cluster_offset & 511) != 0) { in qcow_aio_read_cb()
475 (acb->cluster_offset >> 9) + index_in_cluster, in qcow_aio_read_cb()
512 acb->cluster_offset = 0; in qcow_aio_setup()
545 if (qcow2_alloc_cluster_link_l2(bs, acb->cluster_offset, &acb->l2meta) < 0) { in qcow_aio_write_cb()
546 qcow2_free_any_clusters(bs, acb->cluster_offset, acb->l2meta.nb_clusters); in qcow_aio_write_cb()
566 acb->cluster_offset = qcow2_alloc_cluster_offset(bs, acb->sector_num << 9, in qcow_aio_write_cb()
569 if (!acb->cluster_offset || (acb->cluster_offset & 511) != 0) { in qcow_aio_write_cb()
588 (acb->cluster_offset >> 9) + index_in_cluster, in qcow_aio_write_cb()
838 uint64_t cluster_offset; in qcow_write_compressed() local
843 cluster_offset = bdrv_getlength(s->hd); in qcow_write_compressed()
844 cluster_offset = (cluster_offset + 511) & ~511; in qcow_write_compressed()
845 bdrv_truncate(s->hd, cluster_offset); in qcow_write_compressed()
883 cluster_offset = qcow2_alloc_compressed_cluster_offset(bs, in qcow_write_compressed()
885 if (!cluster_offset) in qcow_write_compressed()
887 cluster_offset &= s->cluster_offset_mask; in qcow_write_compressed()
888 if (bdrv_pwrite(s->hd, cluster_offset, out_buf, out_len) != out_len) { in qcow_write_compressed()