Home
last modified time | relevance | path

Searched refs:subcluster_size (Results 1 – 8 of 8) sorted by relevance

/openbmc/qemu/tests/qemu-iotests/
H A D02748 subcluster_size=2048
60 $QEMU_IO -c "write -pP 0xa $subcluster_offset $subcluster_size" "$TEST_IMG" | _filter_qemu_io
64 $QEMU_IO -c "read -pP 0xa $subcluster_offset $subcluster_size" "$TEST_IMG" | _filter_qemu_io
68 $QEMU_IO -c "read -pP 0 -l $subcluster_offset 0 $subcluster_size" "$TEST_IMG" | _filter_qemu_io
72 $QEMU_IO -c "read -pP 0 -l 512 -s $subcluster_size $subcluster_offset $(( subcluster_size + 512 ))"…
/openbmc/qemu/include/block/
H A Dblock-common.h143 int subcluster_size; member
/openbmc/qemu/block/
H A Dqcow2.h332 int subcluster_size; member
668 return offset & (s->subcluster_size - 1); in offset_into_subcluster()
678 return (size + (s->subcluster_size - 1)) >> s->subcluster_bits; in size_to_subclusters()
H A Dqcow2.c1476 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 …]
H A Dqcow2-cluster.c1282 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()
H A Dio.c742 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()
/openbmc/qemu/
H A Dqemu-img.c3701 } 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()
H A Dblock.c6572 if (bdi->subcluster_size == 0) { in bdrv_co_get_info()
6577 bdi->subcluster_size = bdi->cluster_size; in bdrv_co_get_info()