Searched refs:subcluster_size (Results 1 – 8 of 8) sorted by relevance
48 subcluster_size=204860 $QEMU_IO -c "write -pP 0xa $subcluster_offset $subcluster_size" "$TEST_IMG" | _filter_qemu_io64 $QEMU_IO -c "read -pP 0xa $subcluster_offset $subcluster_size" "$TEST_IMG" | _filter_qemu_io68 $QEMU_IO -c "read -pP 0 -l $subcluster_offset 0 $subcluster_size" "$TEST_IMG" | _filter_qemu_io72 $QEMU_IO -c "read -pP 0 -l 512 -s $subcluster_size $subcluster_offset $(( subcluster_size + 512 ))"…
143 int subcluster_size; member
332 int subcluster_size; member668 return offset & (s->subcluster_size - 1); in offset_into_subcluster()678 return (size + (s->subcluster_size - 1)) >> s->subcluster_bits; in size_to_subclusters()
1476 s->subcluster_size = s->cluster_size / s->subclusters_per_cluster; in qcow2_do_open()1477 s->subcluster_bits = ctz32(s->subcluster_size); in qcow2_do_open()1479 if (s->subcluster_size < (1 << MIN_CLUSTER_BITS)) { in qcow2_do_open()1480 error_setg(errp, "Unsupported subcluster size: %d", s->subcluster_size); in qcow2_do_open()1983 bs->bl.pwrite_zeroes_alignment = s->subcluster_size; in qcow2_refresh_limits()4069 uint32_t tail = ROUND_UP(offset + bytes, s->subcluster_size) - in qcow2_co_pwrite_zeroes()4082 assert(head + bytes + tail <= s->subcluster_size); in qcow2_co_pwrite_zeroes()4093 bytes = s->subcluster_size; in qcow2_co_pwrite_zeroes()4094 nr = s->subcluster_size; in qcow2_co_pwrite_zeroes()4603 uint64_t zero_start = QEMU_ALIGN_UP(old_length, s->subcluster_size); in qcow2_co_truncate()[all …]
1282 cow_end_to = ROUND_UP(cow_end_from, s->subcluster_size); in calculate_l2_meta()1294 cow_end_to = ROUND_UP(cow_end_from, s->subcluster_size); in calculate_l2_meta()
742 if (bdrv_co_get_info(bs, &bdi) < 0 || bdi.subcluster_size == 0) { in bdrv_round_to_subclusters()746 int64_t c = bdi.subcluster_size; in bdrv_round_to_subclusters()
3701 } else if (bdi.subcluster_size == 0) { in img_rebase()3702 bdi.cluster_size = bdi.subcluster_size = 1; in img_rebase()3705 write_align = compress ? bdi.cluster_size : bdi.subcluster_size; in img_rebase()
6572 if (bdi->subcluster_size == 0) { in bdrv_co_get_info()6577 bdi->subcluster_size = bdi->cluster_size; in bdrv_co_get_info()