Lines Matching refs:block

55 	sector_t block;
61 * hash_verified is nonzero, hash of the block has been verified.
94 * Return hash position of a specified block at a specified tree level
97 * inside a hash block. The remaining bits denote location of the hash block.
99 static sector_t verity_position_at_level(struct dm_verity *v, sector_t block,
102 return block >> (level * v->hash_per_block_bits);
203 static void verity_hash_at_level(struct dm_verity *v, sector_t block, int level,
206 sector_t position = verity_position_at_level(v, block, level);
225 unsigned long long block)
251 DMERR_LIMIT("%s: %s block %llu is corrupted", v->data_dev->name,
252 type_str, block);
260 DM_VERITY_ENV_VAR_NAME, type, block);
278 * Verify hash of a metadata block pertaining to the specified data block
279 * ("block" argument) at a specified level ("level" argument).
282 * for a lower tree level or for the data block (if we're at the lowest level).
289 sector_t block, int level, bool skip_unverified,
300 verity_hash_at_level(v, block, level, &hash_block, &offset);
354 block, 0);
370 * Find a hash for a given block, write it to digest and verify the integrity
374 sector_t block, u8 *digest, bool *is_zero)
381 * the current block. If the hash block itself is
386 r = verity_verify_level(v, io, block, 0, true, digest);
394 r = verity_verify_level(v, io, block, i, false, digest);
431 * until you consider the typical block size is 4,096B.
553 * Moves the bio iter one data block forward.
590 sector_t cur_block = io->block + b;
607 * If we expect a zero block, don't validate, just
760 verity_hash_at_level(v, pw->block, i, &hash_block_start, NULL);
761 verity_hash_at_level(v, pw->block + pw->n_blocks - 1, i, &hash_block_end, NULL);
790 sector_t block = io->block;
795 while (n_blocks && test_bit(block, v->validated_blocks)) {
796 block++;
799 while (n_blocks && test_bit(block + n_blocks - 1,
814 pw->block = block;
850 io->block = bio->bi_iter.bi_sector >> (v->data_dev_block_bits - SECTOR_SHIFT);
1235 * <data block size>
1236 * <hash block size>
1238 * <hash start block>
1313 ti->error = "Invalid data device block size";
1323 ti->error = "Invalid hash device block size";