Home
last modified time | relevance | path

Searched refs:cluster_size (Results 1 – 25 of 139) sorted by relevance

123456

/openbmc/qemu/tests/qemu-iotests/
H A Dcommon.pattern74 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 …]
H A D08265 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 …]
H A D21454 _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"
H A D049.out7 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 …]
H A Dqcow2_format.py148 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 …]
H A D31345 _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} ))
H A D125.out2 --- 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 …]
H A D31254 _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
H A D085.out19 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 …]
H A D02746 cluster_size=65536
56 $QEMU_IO -c "write -pP 0xde $cluster_size $cluster_size" "$TEST_IMG" | _filter_qemu_io
H A D19054 $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"
H A D125115 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"
H A D16391 '-o', 'cluster_size=' + self.cluster_size +
95 '-o', 'cluster_size=%s'% self.cluster_size,
152 cluster_size = '512' variable in TestShrink512
156 cluster_size = '64K' variable in TestShrink64K
159 cluster_size = '1M' variable in TestShrink1M
H A D084.out9 cluster_size: 1048576
18 cluster_size: 1048576
24 cluster_size: 1048576
39 cluster_size: 1048576
/openbmc/qemu/tests/image-fuzzer/qcow2/
H A Dlayout.py97 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 …]
/openbmc/qemu/block/
H A Dblock-copy.c128 int64_t cluster_size; member
169 return s->cluster_size; in block_copy_chunk_size()
291 if (s->max_transfer < s->cluster_size) { in block_copy_set_copy_opts()
359 int64_t cluster_size; in block_copy_state_new() local
366 if (cluster_size < 0) { in block_copy_state_new()
411 .cluster_size = cluster_size, in block_copy_state_new()
610 if (ret < 0 || num < s->cluster_size) { in block_copy_block_status()
615 num = s->cluster_size; in block_copy_block_status()
661 if (total_count >= s->cluster_size) { in block_copy_is_cluster_allocated()
701 bytes = clusters * s->cluster_size; in block_copy_reset_unallocated()
[all …]
H A Dqcow.c74 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 …]
H A Dqed.h89 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()
H A Dqcow2.c227 if (offset > s->cluster_size) in qcow2_read_extensions()
3383 meta_size += cluster_size; in qcow2_calc_prealloc_size()
3431 size_t cluster_size; in qcow2_opt_get_cluster_size_del() local
3438 return cluster_size; in qcow2_opt_get_cluster_size_del()
3505 size_t cluster_size; in qcow2_co_create() local
3544 cluster_size = qcow2_opts->cluster_size; in qcow2_co_create()
3751 ret = blk_co_pwrite(blk, cluster_size, 2 * cluster_size, refcount_table, 0); in qcow2_co_create()
4669 assert(bytes == s->cluster_size || (bytes < s->cluster_size && in qcow2_co_pwritev_compressed_task()
4673 if (bytes < s->cluster_size) { in qcow2_co_pwritev_compressed_task()
5065 size_t cluster_size; in qcow2_measure() local
[all …]
H A Dqed.c60 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 …]
H A Dparallels.c142 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 …]
H A Dqcow2-refcount.c492 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 …]
H A Dparallels-ext.c74 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()
H A Dqcow2-bitmap.c129 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()
1797 bitmaps_size += bmclusters * cluster_size; in qcow2_get_persistent_dirty_bitmap_size()
[all …]
/openbmc/linux/fs/f2fs/
H A Dcompress.c63 return index & (cc->cluster_size - 1); in offset_in_cluster()
129 for (i = 0; i < cc->cluster_size; i++) { in f2fs_put_rpages_wbc()
866 for (; i < cc->cluster_size; i++) { in f2fs_all_cluster_page_ready()
907 if (dn->ofs_in_node % cluster_size) { in f2fs_sanity_check_cluster()
912 for (i = 1; i < cluster_size; i++) { in f2fs_sanity_check_cluster()
967 for (i = 1; i < cluster_size; i++) { in __f2fs_cluster_blocks()
982 !compr && ret != cluster_size && in __f2fs_cluster_blocks()
1114 return cc->cluster_size; in prepare_compress_overwrite()
1291 cic->nr_rpages = cc->cluster_size; in f2fs_write_compressed_pages()
1642 dic->cluster_size = cc->cluster_size; in f2fs_alloc_dic()
[all …]

123456