Home
last modified time | relevance | path

Searched full:clusters (Results 1 – 25 of 367) sorted by relevance

12345678910>>...15

/openbmc/qemu/tests/qemu-iotests/
H A D0664 # Test case for preallocated zero clusters in qcow2
43 # We need zero clusters and snapshots
55 # Write some normal clusters, zero some of them (creating preallocated
56 # zero clusters) and discard everything. Everything should now read as 0.
63 # Map the image (we want all clusters to be gone)
70 echo '=== Writing to preallocated zero clusters ==='
75 # Create data clusters (not aligned to an L2 table)
79 # Convert the data clusters to preallocated zero clusters
99 echo 'Successfully reused original clusters.'
101 echo 'Failed to reuse original clusters.'
[all …]
H A Dcommon.pattern76 # Complete clusters
92 # Spanning multiple clusters
97 # L2 table size: 512 clusters of 4k = 2M
108 # Pattern (repeat after 9 clusters):
112 # Write the clusters to be compressed
113 echo '=== Clusters to be compressed [1]'
115 echo '=== Clusters to be compressed [2]'
117 echo '=== Clusters to be compressed [3]'
123 # Write the used clusters
124 echo '=== Used clusters [1]'
[all …]
H A D0195 # the backing file clusters must not copied. The data must still be
66 # Some clusters with alternating backing file/image file reads
69 # Complete backing clusters
84 # Some clusters with alternating backing file/image file reads
87 # Complete test image clusters
105 echo "Checking if backing clusters are allocated when they shouldn't"
108 # Complete backing clusters
116 # Some clusters with alternating backing file/image file reads
120 # Complete test image clusters
H A D260.out6 initial bitmap: name=bitmap0 dirty-clusters=1
16 check bitmap after commit: name=bitmap0 dirty-clusters=2
17 check updated bitmap: name=bitmap0 dirty-clusters=3
23 initial bitmap: name=bitmap0 dirty-clusters=1
33 check bitmap after commit: name=bitmap0 dirty-clusters=2
34 check updated bitmap: name=bitmap0 dirty-clusters=3
40 initial bitmap: name=bitmap0 dirty-clusters=1
51 check bitmap after commit: name=bitmap0 dirty-clusters=2
52 check updated bitmap: name=bitmap0 dirty-clusters=3
H A D290.out7 # Fill all clusters with data and then discard them
12 # Read the data from the discarded clusters
19 # Fill all clusters with data and then discard them
24 # Read the data from the discarded clusters
38 # Fill all clusters with data and then discard them
43 # Read the data from the discarded clusters
51 # Fill all clusters with data and then discard them
56 # Read the data from the discarded clusters
H A D11551 # number of clusters which can be described by a single refblock; therefore, at
52 # least two refblocks cannot count their own refcounts because all the clusters
56 # 512/8 = 64 clusters, therefore the L1 table should cover 128 clusters, which
59 # 8192 * 512/8 = 524,288 clusters which cover a space of 256 MB.
76 # indeed all the clusters are allocated, which is done by qemu-img check.
79 # refcount blocks; since all clusters of the tables are referenced, we can use
83 sed -e 's/^.* = \([0-9]\+\.[0-9]\+% allocated\).*\(clusters\)$/\1 \2/' \
H A D01858 # Some clusters with alternating backing file/image file reads
61 # Complete backing clusters
76 # Some clusters with alternating backing file/image file reads
79 # Complete test image clusters
91 # Some clusters with alternating backing file/image file reads
95 # Complete test image clusters
H A D01757 # Some clusters with alternating backing file/image file reads
60 # Complete backing clusters
75 # Some clusters with alternating backing file/image file reads
78 # Complete test image clusters
87 # Some clusters with alternating backing file/image file reads
91 # Complete test image clusters
H A D108.out15 0 leaked clusters
39 0 leaked clusters
56 0 leaked clusters
73 0 leaked clusters
89 0 leaked clusters
105 0 leaked clusters
123 0 leaked clusters
145 0 leaked clusters
186 0 leaked clusters
H A D29053 echo "# Fill all clusters with data and then discard them"
57 echo "# Read the data from the discarded clusters"
77 echo "# Fill all clusters with data and then discard them"
81 echo "# Read the data from the discarded clusters"
83 # In qcow2 v3 clusters are zeroed (with QCOW_OFLAG_ZERO)
86 # In qcow2 v2 if there's a backing image we cannot zero the clusters
H A D271234 # calculate_l2_meta() checks if none of the clusters affected by a
237 # Here clusters #0-#3 are overwritten but only #1 and #2 need changes.
239 echo '### Overwriting several clusters without COW ###'
277 echo "### Writing zeroes 1: unallocated clusters (backing file: $use_backing_file) ###"
282 # Cluster-aligned request from clusters #0 to #2
288 # Subcluster-aligned request from clusters #3 to #5
296 # Unaligned request from clusters #6 to #8
313 echo "### Writing zeroes 2: allocated clusters (backing file: $use_backing_file) ###"
326 # Cluster-aligned request from clusters #9 to #11
332 # Subcluster-aligned request from clusters #12 to #14
[all …]
H A D31280 # (unallocated clusters, zero clusters, data clusters with zeroes)
86 # Test 1: data regions surrounded by unallocated clusters.
93 # Test 2: zero regions surrounded by data clusters.
94 # First we allocate the data clusters.
105 # Test 3: zero clusters surrounded by unallocated clusters.
111 # Test 4: mix of data and zero clusters.
/openbmc/linux/fs/ntfs/
H A Dlcnalloc.h38 * ntfs_cluster_free - free clusters on an ntfs volume
39 * @ni: ntfs inode whose runlist describes the clusters to free
40 * @start_vcn: vcn in the runlist of @ni at which to start freeing clusters
41 * @count: number of clusters to free or -1 for all clusters
44 * Free @count clusters starting at the cluster @start_vcn in the runlist
47 * If @count is -1, all clusters from @start_vcn to the end of the runlist are
48 * deallocated. Thus, to completely free all clusters in a runlist, use
71 * Return the number of deallocated clusters (not counting sparse ones) on
103 * ntfs_cluster_free_from_rl - free clusters from runlist
104 * @vol: mounted ntfs volume on which to free the clusters
[all …]
H A Dlcnalloc.c23 * ntfs_cluster_free_from_rl_nolock - free clusters from runlist
24 * @vol: mounted ntfs volume on which to free the clusters
25 * @rl: runlist describing the clusters to free
27 * Free all the clusters described by the runlist @rl on the volume @vol. In
28 * the case of an error being returned, at least some of the clusters were not
59 * ntfs_cluster_alloc - allocate clusters on an ntfs volume
60 * @vol: mounted ntfs volume on which to allocate the clusters
62 * @count: number of clusters to allocate
63 * @start_lcn: starting lcn at which to allocate the clusters (or -1 if none)
64 * @zone: zone from which to allocate the clusters
[all …]
/openbmc/qemu/tests/image-fuzzer/qcow2/
H A Dlayout.py279 # Compressed clusters are not supported => bit #62 = 0
292 # All metadata for an empty guest image needs 4 clusters:
294 # Header takes cluster #0, other clusters ##1-3 can be used
305 # Number of clusters necessary for L1 table
313 # Host clusters allocated for L2 tables
339 """Return indices of clusters allocated for refcount blocks."""
343 # Allocate all yet not allocated clusters
346 # Indices of new refcount blocks necessary to cover clusters
354 """Return indices of clusters allocated for the refcount table
355 and updated indices of clusters allocated for blocks and indices
[all …]
/openbmc/qemu/docs/interop/
H A Dqcow2.txt4 (host) clusters. A cluster is the unit in which all allocations are done,
8 clusters of the same size.
39 Must not be less than 9 (i.e. 512 byte clusters).
46 must be at least 14 (i.e. 16384 byte clusters).
58 (56 bits) of populated clusters, and an image may
79 Number of clusters that the refcount table occupies
107 external data file is used. Guest clusters are
109 images, clusters in the external data file are
112 guest offset and neither compressed clusters
120 clusters. The compression_type field must be
[all …]
H A Dqed_spec.txt9clusters start; this allows the header to be extensible and store extra information about the imag…
20 uint32_t table_size; /* for L1 and L2 tables, in clusters */
21 uint32_t header_size; /* in clusters */
38 …'header_size'' is the number of clusters used by the header and any additional information stored …
45 …onstraints. The string must be stored within the first ''header_size'' clusters. The backing fil…
80 A table is made up of one or more contiguous clusters. The table_size header field determines tabl…
82 The logical image size must be less than or equal to the maximum possible size of clusters rooted b…
96 ===Unallocated L2 tables and data clusters===
99 Writes to an unallocated area cause a new data clusters to be allocated, and a new L2 table if that…
101 ===Zero data clusters===
[all …]
/openbmc/linux/fs/ocfs2/
H A Docfs2.h458 * How many clusters in our truncate log.
743 u32 clusters) in ocfs2_clusters_to_blocks() argument
748 return (u64)clusters << c_to_b_bits; in ocfs2_clusters_to_blocks()
774 unsigned int clusters; in ocfs2_clusters_for_bytes() local
777 /* OCFS2 just cannot have enough clusters to overflow this */ in ocfs2_clusters_for_bytes()
778 clusters = (unsigned int)(bytes >> cl_bits); in ocfs2_clusters_for_bytes()
780 return clusters; in ocfs2_clusters_for_bytes()
787 unsigned int clusters; in ocfs2_bytes_to_clusters() local
789 clusters = (unsigned int)(bytes >> cl_bits); in ocfs2_bytes_to_clusters()
790 return clusters; in ocfs2_bytes_to_clusters()
[all …]
H A Dresize.c170 static int update_backups(struct inode * inode, u32 clusters, char *data) in update_backups() argument
183 if (cluster >= clusters) in update_backups()
213 u32 clusters = 0; in ocfs2_update_super_and_backups() local
231 clusters = le32_to_cpu(super_di->i_clusters); in ocfs2_update_super_and_backups()
240 ret = update_backups(inode, clusters, super_bh->b_data); in ocfs2_update_super_and_backups()
253 * Extend the filesystem to the new number of clusters specified. This entry
389 else if (le16_to_cpu(gd->bg_bits) != input->clusters * cl_bpc) in ocfs2_check_new_group()
391 "input has %u clusters set\n", in ocfs2_check_new_group()
393 le16_to_cpu(gd->bg_bits), input->clusters); in ocfs2_check_new_group()
426 else if (total_clusters + input->clusters < total_clusters) in ocfs2_verify_group_and_input()
[all …]
/openbmc/qemu/hw/core/
H A Dmachine-smp.c51 g_string_append_printf(s, " * clusters (%u)", ms->smp.clusters); in cpu_hierarchy_to_string()
94 unsigned clusters = config->has_clusters ? config->clusters : 0; in machine_parse_smp_config() local
110 (config->has_clusters && config->clusters == 0) || in machine_parse_smp_config()
133 config->has_clusters && config->clusters > 1) { in machine_parse_smp_config()
135 "clusters > 1 not supported by this machine's CPU topology"); in machine_parse_smp_config()
138 clusters = clusters > 0 ? clusters : 1; in machine_parse_smp_config()
178 (drawers * books * dies * clusters * in machine_parse_smp_config()
184 clusters * modules * threads); in machine_parse_smp_config()
193 clusters * modules * threads); in machine_parse_smp_config()
197 (drawers * books * dies * clusters * in machine_parse_smp_config()
[all …]
/openbmc/qemu/tests/qemu-iotests/tests/
H A Dvvfat57 for i in range(8 * 2): # two clusters
62 for i in range(8 * 3): # 3 clusters
252 directly clusters and thus we don't go through the modification of
286 clusters
304 Test truncating the file without changing number of clusters
323 Test truncating the file without changing number of clusters
356 # without changing the number of clusters or filesize
366 Test truncating a file by reducing the number of clusters
381 Test truncating a file by reducing the number of clusters
397 Test truncating a file by increasing the number of clusters
[all …]
/openbmc/qemu/tests/unit/
H A Dtest-smp-parse.c68 * -sockets/clusters/cores/threads
74 .has_clusters = hc, .clusters = c, \
99 * -drawers/books/sockets/dies/clusters/modules/cores/threads
108 .has_clusters = true, .clusters = f, \
340 * -smp 8,drawers=1,books=1,sockets=2,dies=1,clusters=1,modules=1,\
361 /* config: -smp 2,clusters=2 */
363 .expect_error = "clusters > 1 not supported by this machine's CPU topology",
478 /* config: -smp 16,sockets=2,clusters=2,cores=4,threads=2,maxcpus=16 */
482 "sockets (2) * clusters (2) * cores (4) * threads (2) "
485 /* config: -smp 34,sockets=2,clusters=2,cores=4,threads=2,maxcpus=32 */
[all …]
/openbmc/qemu/block/
H A Dqed-cluster.c19 * Count the number of contiguous data clusters
24 * @n: Maximum number of clusters
27 * This function scans tables for contiguous clusters. A contiguous run of
28 * clusters may be allocated, unallocated, or zero.
44 /* Counting unallocated clusters */ in qed_count_contiguous_clusters()
49 /* Counting zero clusters */ in qed_count_contiguous_clusters()
54 /* Counting allocated clusters */ in qed_count_contiguous_clusters()
H A Dqcow2-cluster.c153 /* the L1 position has not yet been updated, so these clusters must in qcow2_grow_l1_table()
384 * the same type starting from @sc_from. Compressed clusters are
436 * At most @nb_clusters are checked (note that this means clusters,
438 * Compressed clusters are always processed one by one but for the
469 /* Compressed clusters are always processed one by one */ in count_contiguous_subclusters()
513 * bdrv_check_qiov_request(), and aligning requests to clusters never in do_perform_cow_read()
582 * Compressed clusters are always processed one by one.
873 /* compressed clusters never have the copied flag */ in qcow2_alloc_compressed_cluster_offset()
1110 * Don't discard clusters that reach a refcount of 0 (e.g. compressed in qcow2_alloc_cluster_link_l2()
1111 * clusters), the next write will reuse them anyway. in qcow2_alloc_cluster_link_l2()
[all …]
/openbmc/linux/arch/arm/common/
H A Dmcpm_entry.c36 mcpm_sync.clusters[cluster].cpus[cpu].cpu = CPU_GOING_DOWN; in __mcpm_cpu_going_down()
37 sync_cache_w(&mcpm_sync.clusters[cluster].cpus[cpu].cpu); in __mcpm_cpu_going_down()
50 mcpm_sync.clusters[cluster].cpus[cpu].cpu = CPU_DOWN; in __mcpm_cpu_down()
51 sync_cache_w(&mcpm_sync.clusters[cluster].cpus[cpu].cpu); in __mcpm_cpu_down()
66 mcpm_sync.clusters[cluster].cluster = state; in __mcpm_outbound_leave_critical()
67 sync_cache_w(&mcpm_sync.clusters[cluster].cluster); in __mcpm_outbound_leave_critical()
85 struct mcpm_sync_struct *c = &mcpm_sync.clusters[cluster]; in __mcpm_outbound_enter_critical()
137 sync_cache_r(&mcpm_sync.clusters[cluster].cluster); in __mcpm_cluster_state()
138 return mcpm_sync.clusters[cluster].cluster; in __mcpm_cluster_state()
436 mcpm_sync.clusters[i].cluster = CLUSTER_DOWN; in mcpm_sync_init()
[all …]

12345678910>>...15