/qemu/tests/qemu-iotests/ |
A D | common.pattern | 74 local l2_size=$((cluster_size * cluster_size / 8)) 77 io "$op" $offset $cluster_size $cluster_size $num_small 114 io_pattern writev $((offset + 4 * $cluster_size)) $cluster_size $((9 * $cluster_size)) $num 165 116 io_pattern writev $((offset + 5 * $cluster_size)) $cluster_size $((9 * $cluster_size)) $num 165 118 io_pattern writev $((offset + 8 * $cluster_size)) $cluster_size $((9 * $cluster_size)) $num 165 125 io_pattern writev $((offset + 0 * $cluster_size)) $cluster_size $((9 * $cluster_size)) $num 165 127 io_pattern writev $((offset + 1 * $cluster_size)) $cluster_size $((9 * $cluster_size)) $num 165 129 io_pattern writev $((offset + 3 * $cluster_size)) $cluster_size $((9 * $cluster_size)) $num 165 133 …io_pattern readv $((offset + 0 * $cluster_size)) $((2 * $cluster_size)) $((9 * $cluster_size)) $nu… 138 io_zero readv $((offset + 2 * $cluster_size)) $((1 * $cluster_size)) $((9 * $cluster_size)) $num [all …]
|
A D | 082 | 65 run_qemu_img create -f $IMGFMT -o cluster_size=4k -o lazy_refcounts=on -o cluster_size=8k "$TEST_IM… 67 run_qemu_img create -f $IMGFMT -o cluster_size=4k,cluster_size=8k "$TEST_IMG" $size 79 run_qemu_img create -f $IMGFMT -o cluster_size=4k,\? "$TEST_IMG" $size 81 run_qemu_img create -f $IMGFMT -o \?,cluster_size=4k "$TEST_IMG" $size 124 run_qemu_img convert -O $IMGFMT -o cluster_size=4k -o lazy_refcounts=on -o cluster_size=8k "$TEST_I… 126 run_qemu_img convert -O $IMGFMT -o cluster_size=4k,cluster_size=8k "$TEST_IMG" "$TEST_IMG".base 196 run_qemu_img amend -f $IMGFMT -o cluster_size=4k,help "$TEST_IMG" 197 run_qemu_img amend -f $IMGFMT -o cluster_size=4k,\? "$TEST_IMG" 198 run_qemu_img amend -f $IMGFMT -o help,cluster_size=4k "$TEST_IMG" 199 run_qemu_img amend -f $IMGFMT -o \?,cluster_size=4k "$TEST_IMG" [all …]
|
A D | 049.out | 7 Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib s… 134 qemu-img create -f qcow2 -o cluster_size=1024 TEST_DIR/t.qcow2 64M 137 qemu-img create -f qcow2 -o cluster_size=1024b TEST_DIR/t.qcow2 64M 140 qemu-img create -f qcow2 -o cluster_size=1k TEST_DIR/t.qcow2 64M 143 qemu-img create -f qcow2 -o cluster_size=1K TEST_DIR/t.qcow2 64M 146 qemu-img create -f qcow2 -o cluster_size=1M TEST_DIR/t.qcow2 64M 149 qemu-img create -f qcow2 -o cluster_size=1024.0 TEST_DIR/t.qcow2 64M 152 qemu-img create -f qcow2 -o cluster_size=1024.0b TEST_DIR/t.qcow2 64M 155 qemu-img create -f qcow2 -o cluster_size=0.5k TEST_DIR/t.qcow2 64M 158 qemu-img create -f qcow2 -o cluster_size=0.5K TEST_DIR/t.qcow2 64M [all …]
|
A D | 214 | 54 _make_test_img 8M -o cluster_size=2M,compression_type=zlib 97 cluster_size=0x10000 98 _make_test_img 2M -o cluster_size=$cluster_size 101 let data_size="8 * $cluster_size" 108 _make_test_img 2M -o cluster_size=$cluster_size 110 let data_size="3 * $cluster_size + $cluster_size / 2" 118 let offset="4 * $cluster_size + $cluster_size / 4"
|
A D | qcow2_format.py | 148 def __init__(self, fd, cluster_size): argument 154 self.cluster_size = cluster_size 161 [Qcow2BitmapDirEntry(fd, cluster_size=self.cluster_size) 190 self.cluster_size = cluster_size 202 cluster_size=self.cluster_size) 254 self.cluster_size = cluster_size 265 size = self.cluster_size 299 cluster_size=None): argument 327 self.obj = Qcow2BitmapExt(fd=fd, cluster_size=cluster_size) 423 end = self.cluster_size [all …]
|
A D | 125.out | 2 --- cluster_size=512 growth_size=16 create_mode=off growth_mode=off --- 10 --- cluster_size=512 growth_size=16 create_mode=off growth_mode=metadata --- 18 --- cluster_size=512 growth_size=16 create_mode=off growth_mode=falloc --- 26 --- cluster_size=512 growth_size=16 create_mode=off growth_mode=full --- 34 --- cluster_size=512 growth_size=16 create_mode=metadata growth_mode=off --- 66 --- cluster_size=512 growth_size=16 create_mode=falloc growth_mode=off --- 98 --- cluster_size=512 growth_size=16 create_mode=full growth_mode=off --- 122 --- cluster_size=512 growth_size=16 create_mode=full growth_mode=full --- 130 --- cluster_size=512 growth_size=48 create_mode=off growth_mode=off --- 154 --- cluster_size=512 growth_size=48 create_mode=off growth_mode=full --- [all …]
|
A D | 313 | 45 _unsupported_imgopts cluster_size refcount_bits extended_l2 compat=0.10 data_file 49 cluster_size=4096 51 options="cluster_size=${cluster_size},refcount_bits=${refcount_bits}" 54 ref_entries=$(( ${cluster_size} * 8 / ${refcount_bits} )) 69 total_size=$(( ${total_data_clusters} * ${cluster_size} ))
|
A D | 085.out | 19 Formatting 'TEST_DIR/1-snapshot-v0.qcow2', fmt=qcow2 cluster_size=65536 extended_l2=off compression… 48 Formatting 'TEST_DIR/2-snapshot-v0.qcow2', fmt=qcow2 cluster_size=65536 extended_l2=off compression… 49 Formatting 'TEST_DIR/2-snapshot-v1.qcow2', fmt=qcow2 cluster_size=65536 extended_l2=off compression… 60 Formatting 'TEST_DIR/3-snapshot-v0.qcow2', fmt=qcow2 cluster_size=65536 extended_l2=off compression… 61 Formatting 'TEST_DIR/3-snapshot-v1.qcow2', fmt=qcow2 cluster_size=65536 extended_l2=off compression… 72 Formatting 'TEST_DIR/4-snapshot-v0.qcow2', fmt=qcow2 cluster_size=65536 extended_l2=off compression… 73 Formatting 'TEST_DIR/4-snapshot-v1.qcow2', fmt=qcow2 cluster_size=65536 extended_l2=off compression… 84 Formatting 'TEST_DIR/5-snapshot-v0.qcow2', fmt=qcow2 cluster_size=65536 extended_l2=off compression… 85 Formatting 'TEST_DIR/5-snapshot-v1.qcow2', fmt=qcow2 cluster_size=65536 extended_l2=off compression… 96 Formatting 'TEST_DIR/6-snapshot-v0.qcow2', fmt=qcow2 cluster_size=65536 extended_l2=off compression… [all …]
|
A D | 312 | 54 _unsupported_imgopts cluster_size data_file 60 TEST_IMG="$TEST_IMG.0" _make_test_img -o cluster_size=64k 10M 61 TEST_IMG="$TEST_IMG.1" _make_test_img -o cluster_size=64k 10M 62 TEST_IMG="$TEST_IMG.2" _make_test_img -o cluster_size=64k 10M 63 TEST_IMG="$TEST_IMG.3" _make_test_img -o cluster_size=64k 10M
|
A D | 190 | 54 $QEMU_IMG measure -O qcow2 -o cluster_size=64k -f qcow2 "$TEST_IMG" 55 $QEMU_IMG measure -O qcow2 -o cluster_size=2M -f qcow2 "$TEST_IMG" 86 $QEMU_IMG measure -O qcow2 -o cluster_size=64k -f qcow2 "$TEST_IMG" 98 $QEMU_IMG measure --output=json -O qcow2 -o cluster_size=2M -f qcow2 "$TEST_IMG"
|
A D | 027 | 46 cluster_size=65536 56 $QEMU_IO -c "write -pP 0xde $cluster_size $cluster_size" "$TEST_IMG" | _filter_qemu_io
|
A D | 125 | 115 for cluster_size in 512 64k; do 120 …echo "--- cluster_size=$cluster_size growth_size=$GROWTH_SIZE create_mode=$create_mode growth_mode… 122 … _make_test_img -o "preallocation=$create_mode,cluster_size=$cluster_size" ${CREATION_SIZE} 179 _make_test_img -F raw -b "$TEST_IMG.base" -o cluster_size=64k "$orig_size"
|
A D | 082.out | 10 cluster_size: 65536 17 cluster_size: 4096 31 cluster_size: 8192 45 cluster_size: 8192 323 cluster_size: 65536 329 cluster_size: 4096 342 cluster_size: 8192 355 cluster_size: 8192 639 cluster_size: 65536 652 cluster_size: 65536 [all …]
|
/qemu/tests/image-fuzzer/qcow2/ |
A D | layout.py | 97 self.cluster_size = 1 << cluster_bits 221 (self.cluster_size - 1)) - \ 272 offset = l2_cluster * self.cluster_size 273 l2_size = self.cluster_size // UINT64_S 285 l2_size = self.cluster_size // UINT64_S 304 l_size = self.cluster_size // UINT64_S 361 size = self.cluster_size // UINT64_S 517 rounded = (size + self.cluster_size - 1) & ~(self.cluster_size - 1) 529 cluster_size = 1 << cluster_bits 586 def _alloc_data(img_size, cluster_size): argument [all …]
|
/qemu/block/ |
A D | block-copy.c | 128 int64_t cluster_size; member 170 return s->cluster_size; in block_copy_chunk_size() 292 if (s->max_transfer < s->cluster_size) { in block_copy_set_copy_opts() 367 int64_t cluster_size; in block_copy_state_new() local 385 if (cluster_size < 0) { in block_copy_state_new() 430 .cluster_size = cluster_size, in block_copy_state_new() 638 if (ret < 0 || num < s->cluster_size) { in block_copy_block_status() 643 num = s->cluster_size; in block_copy_block_status() 689 if (total_count >= s->cluster_size) { in block_copy_is_cluster_allocated() 729 bytes = clusters * s->cluster_size; in block_copy_reset_unallocated() [all …]
|
A D | qcow.c | 74 int cluster_size; member 234 s->cluster_size = 1 << s->cluster_bits; in qcow_open() 284 s->cluster_data = g_malloc(s->cluster_size); in qcow_open() 549 n = s->cluster_size - index_in_cluster; in qcow_co_block_status() 605 csize &= (s->cluster_size - 1); in decompress_cluster() 1065 if (bytes != s->cluster_size) { in qcow_co_pwritev_compressed() 1066 if (bytes > s->cluster_size || in qcow_co_pwritev_compressed() 1077 out_buf = g_malloc(s->cluster_size); in qcow_co_pwritev_compressed() 1089 strm.avail_in = s->cluster_size; in qcow_co_pwritev_compressed() 1091 strm.avail_out = s->cluster_size; in qcow_co_pwritev_compressed() [all …]
|
A D | qcow2.c | 227 if (offset > s->cluster_size) in qcow2_read_extensions() 3397 meta_size += cluster_size; in qcow2_calc_prealloc_size() 3445 size_t cluster_size; in qcow2_opt_get_cluster_size_del() local 3452 return cluster_size; in qcow2_opt_get_cluster_size_del() 3520 size_t cluster_size; in qcow2_co_create() local 3559 cluster_size = qcow2_opts->cluster_size; in qcow2_co_create() 3766 ret = blk_co_pwrite(blk, cluster_size, 2 * cluster_size, refcount_table, 0); in qcow2_co_create() 4685 assert(bytes == s->cluster_size || (bytes < s->cluster_size && in qcow2_co_pwritev_compressed_task() 4689 if (bytes < s->cluster_size) { in qcow2_co_pwritev_compressed_task() 5081 size_t cluster_size; in qcow2_measure() local [all …]
|
A D | qed.c | 60 cpu->cluster_size = le32_to_cpu(le->cluster_size); in qed_header_le_to_cpu() 75 le->cluster_size = cpu_to_le32(cpu->cluster_size); in qed_header_cpu_to_le() 145 l2_size = table_entries * cluster_size; in qed_max_image_size() 152 if (cluster_size < QED_MIN_CLUSTER_SIZE || in qed_is_cluster_size_valid() 153 cluster_size > QED_MAX_CLUSTER_SIZE) { in qed_is_cluster_size_valid() 156 if (cluster_size & (cluster_size - 1)) { in qed_is_cluster_size_valid() 230 s->file_size += n * s->header.cluster_size; in qed_alloc_clusters() 454 s->l2_shift = ctz32(s->header.cluster_size); in bdrv_qed_do_open() 705 .cluster_size = qed_opts->cluster_size, in bdrv_qed_co_create() 963 cluster += s->header.cluster_size; in qed_update_l2_table() [all …]
|
A D | qed.h | 89 uint32_t cluster_size; /* in bytes */ member 245 return offset & ~(uint64_t)(s->header.cluster_size - 1); in qed_start_of_cluster() 250 return offset & (s->header.cluster_size - 1); in qed_offset_into_cluster() 255 return qed_start_of_cluster(s, bytes + (s->header.cluster_size - 1)) / in qed_bytes_to_clusters() 256 (s->header.cluster_size - 1); in qed_bytes_to_clusters() 275 s->header.cluster_size; in qed_check_cluster_offset() 277 if (offset & (s->header.cluster_size - 1)) { in qed_check_cluster_offset() 289 s->header.cluster_size; in qed_check_table_offset()
|
A D | parallels.c | 142 return off / s->cluster_size; in host_cluster_index() 322 host_off += first_free * s->cluster_size; in allocate_clusters() 376 host_off += s->cluster_size; in allocate_clusters() 552 if (!QEMU_IS_ALIGNED(offset, s->cluster_size)) { in parallels_co_pdiscard() 558 cluster = offset / s->cluster_size; in parallels_co_pdiscard() 559 count = bytes / s->cluster_size; in parallels_co_pdiscard() 716 if (off + s->cluster_size > size) { in parallels_check_outside_image() 814 if (res->image_end_offset % s->cluster_size) { in parallels_check_duplicate() 821 buf = qemu_blockalign(bs, s->cluster_size); in parallels_check_duplicate() 1014 cl_size = parallels_opts->cluster_size; in parallels_co_create() [all …]
|
A D | qcow2-refcount.c | 492 s->cluster_size; in alloc_refcount_block() 638 block_offset += s->cluster_size; in qcow2_refcount_area() 658 s->cluster_size, in qcow2_refcount_area() 839 cluster_offset += s->cluster_size) in update_refcount() 1174 s->cluster_size); in qcow2_free_any_cluster() 1487 * s->cluster_size; in realloc_refcount_array() 1489 * s->cluster_size; in realloc_refcount_array() 1561 cluster_offset += s->cluster_size) { in qcow2_inc_refcounts_imrt() 2933 if (offset < s->cluster_size) { in qcow2_check_metadata_overlap() 2975 s->cluster_size)) { in qcow2_check_metadata_overlap() [all …]
|
A D | qcow2-bitmap.c | 129 static int check_table_entry(uint64_t entry, int cluster_size) in check_table_entry() argument 144 if (offset % cluster_size != 0) { in check_table_entry() 248 ret = check_table_entry(table[i], s->cluster_size); in bitmap_table_load() 305 buf = g_malloc(s->cluster_size); in load_bitmap_data() 1296 tb_size * s->cluster_size > BME_MAX_PHYS_SIZE) in store_bitmap_data() 1308 buf = g_malloc(s->cluster_size); in store_bitmap_data() 1329 assert(write_size <= s->cluster_size); in store_bitmap_data() 1331 off = qcow2_alloc_clusters(bs, s->cluster_size); in store_bitmap_data() 1341 if (write_size < s->cluster_size) { in store_bitmap_data() 1798 bitmaps_size += bmclusters * cluster_size; in qcow2_get_persistent_dirty_bitmap_size() [all …]
|
A D | parallels-ext.c | 74 s->cluster_size); in parallels_load_bitmap_data() 83 buf = qemu_blockalign(bs, s->cluster_size); in parallels_load_bitmap_data() 84 limit = bdrv_dirty_bitmap_serialization_coverage(s->cluster_size, bitmap); in parallels_load_bitmap_data() 98 s->cluster_size, buf, 0); in parallels_load_bitmap_data() 190 int remaining = s->cluster_size; in parallels_parse_format_extension() 286 uint8_t *ext_cluster = qemu_blockalign(bs, s->cluster_size); in parallels_read_format_extension() 290 ret = bdrv_pread(bs->file, ext_off, s->cluster_size, ext_cluster, 0); in parallels_read_format_extension()
|
A D | copy-before-write.c | 112 int64_t cluster_size = block_copy_cluster_size(s->bcs); in cbw_do_copy_before_write() local 122 off = QEMU_ALIGN_DOWN(offset, cluster_size); in cbw_do_copy_before_write() 123 end = QEMU_ALIGN_UP(offset + bytes, cluster_size); in cbw_do_copy_before_write() 330 uint32_t cluster_size = block_copy_cluster_size(s->bcs); in cbw_co_pdiscard_snapshot() local 331 int64_t aligned_offset = QEMU_ALIGN_UP(offset, cluster_size); in cbw_co_pdiscard_snapshot() 332 int64_t aligned_end = QEMU_ALIGN_DOWN(offset + bytes, cluster_size); in cbw_co_pdiscard_snapshot() 436 int64_t cluster_size; in cbw_open() local 490 cluster_size = block_copy_cluster_size(s->bcs); in cbw_open() 492 s->done_bitmap = bdrv_create_dirty_bitmap(bs, cluster_size, NULL, errp); in cbw_open() 499 s->access_bitmap = bdrv_create_dirty_bitmap(bs, cluster_size, NULL, errp); in cbw_open()
|
/qemu/tests/qemu-iotests/tests/ |
A D | qemu-img-bitmaps.out | 27 cluster_size: 65536 43 cluster_size: 65536 66 cluster_size: 65536 89 cluster_size: 65536 124 cluster_size: 65536 156 cluster_size: 65536 169 cluster_size: 65536
|