Lines Matching refs:block

46 #include "block-map.h"
266 * read_geometry_block() - Synchronously read the geometry block from a vdo's underlying block
275 char *block;
278 result = vdo_allocate(VDO_BLOCK_SIZE, u8, __func__, &block);
283 block, &vio);
285 vdo_free(block);
294 result = vio_reset_bio(vio, block, NULL, REQ_OP_READ,
298 vdo_free(block);
308 vdo_free(block);
312 result = vdo_parse_geometry_block((u8 *) block, &vdo->geometry);
313 vdo_free(block);
486 *reason = "Could not load geometry block";
734 result = vdo_allocate(VDO_BLOCK_SIZE, char, "encoded super block",
746 * finish_reading_super_block() - Continue after loading the super block.
747 * @completion: The super block vio.
761 * handle_super_block_read_error() - Handle an error reading the super block.
762 * @completion: The super block vio.
782 * vdo_load_super_block() - Allocate a super block and read its contents from storage.
783 * @vdo: The vdo containing the super block on disk.
784 * @parent: The completion to notify after loading the super block.
805 * vdo_get_backing_device() - Get the block device object underlying a vdo.
808 * Return: The vdo's current block device.
819 * Return: The block device name.
895 * record_vdo() - Record the state of the VDO for encoding in the super block.
909 * continue_super_block_parent() - Continue the parent of a super block save operation.
910 * @completion: The super block vio.
920 * handle_save_error() - Log a super block save error.
921 * @completion: The super block vio.
931 vdo_log_error_strerror(completion->result, "super block save failed");
933 * Mark the super block as unwritable so that we won't attempt to write it again. This
934 * avoids the case where a growth attempt fails writing the super block with the new size,
954 * vdo_save_components() - Encode the vdo and save the super block asynchronously.
1026 * This will save the read-only state to the super block.
1203 * the vdo has actually entered read-only mode and attempted to save the super block.
1242 * super block.
1690 * vdo_get_physical_zone() - Get the physical zone responsible for a given physical block number.
1692 * @pbn: The PBN of the data block.
1695 * Gets the physical zone responsible for a given physical block number of a data block in this vdo
1696 * instance, or of the zero block (for which a NULL zone is returned). For any other block number
1697 * that is not in the range of valid data block numbers in any slab, an error will be returned.
1698 * This function is safe to call on invalid block numbers; it will not put the vdo into read-only
1701 * Return: VDO_SUCCESS or VDO_OUT_OF_RANGE if the block number is invalid or an error code for any