Lines Matching refs:block

109  * The current version for the data encoded in the super block. This must be changed any time there
129 /* This is the minimum size, if the super block contains no components. */
246 * @version: The geometry block version to decode.
295 * vdo_parse_geometry_block() - Decode and validate an encoded geometry block.
296 * @block: The encoded geometry block.
299 int __must_check vdo_parse_geometry_block(u8 *block, struct volume_geometry *geometry)
306 if (memcmp(block, VDO_GEOMETRY_MAGIC_NUMBER, VDO_GEOMETRY_MAGIC_NUMBER_SIZE) != 0)
310 vdo_decode_header(block, &offset, &header);
321 decode_volume_geometry(block, &offset, geometry, header.version.major_version);
329 checksum = vdo_crc32(block, offset);
330 decode_u32_le(block, &offset, &saved_checksum);
401 "decoded block map component size must match header size");
429 "encoded block map component size must match header size");
435 * @entries: The new number of entries the block map must address.
538 return "block map remapping";
568 "encoded block map component size must match header size");
708 * blocks is currently less than a single block of ref_counts, so we'd gain at most one
709 * data block in each slab with more iteration.
723 * a power of two, and every block in a slab was a data block.
727 * changes by one block.
766 * @block: The journal block holding the entry.
771 struct slab_journal_entry vdo_decode_slab_journal_entry(struct packed_slab_journal_block *block,
775 vdo_unpack_slab_journal_entry(&block->payload.entries[entry_count]);
777 if (block->header.has_block_map_increments &&
778 ((block->payload.full_entries.entry_types[entry_count / 8] &
862 * @block_map_blocks: The size of the block map partition.
1171 * decode_vdo_component() - Decode the component data for the vdo itself out of the super block.
1196 * @physical_block_count: The minimum block count of the underlying storage.
1240 "slab must be able to hold at least one block");
1249 "physical block count %llu exceeds maximum %llu",
1256 vdo_log_error("A physical size of %llu blocks was specified, not the %llu blocks configured in the vdo super block",
1269 vdo_log_error("A logical size of %llu blocks was specified, but that differs from the %llu blocks configured in the vdo super block",
1348 * vdo_decode_component_states() - Decode the payload of a super block.
1349 * @buffer: The buffer containing the encoded super block contents.
1379 * vdo_validate_component_states() - Validate the decoded super block configuration.
1380 * @states: The state decoded from the super block.
1381 * @geometry_nonce: The nonce from the geometry block.
1382 * @physical_size: The minimum block count of the underlying storage.
1403 * vdo_encode_component_states() - Encode the state of all vdo components in the super block.
1418 "All super block component data was encoded");
1422 * vdo_encode_super_block() - Encode a super block into its on-disk representation.
1438 * Even though the buffer is a full block, to avoid the potential corruption from a torn
1446 * vdo_decode_super_block() - Decode a super block from its on-disk representation.
1467 "super block contents too large: %zu",