Lines Matching defs:checksum
72 * Signature for checksum functions.
82 /* ZIO embedded checksum */
93 * Information about each checksum function.
96 /* checksum function for each byteorder */
227 * Calls the template init function of a checksum which supports context
231 zio_checksum_template_init(enum zio_checksum checksum, const spa_t *spa)
233 zio_checksum_info_t *ci = &zio_checksum_table[checksum];
238 if (spa->spa_cksum_tmpls[checksum] != NULL)
243 if (spa->spa_cksum_tmpls[checksum] == NULL) {
244 spa->spa_cksum_tmpls[checksum] =
246 VERIFY(spa->spa_cksum_tmpls[checksum] != NULL);
256 unsigned int checksum;
261 checksum = BP_GET_CHECKSUM(bp);
264 if (checksum >= ZIO_CHECKSUM_FUNCTIONS)
266 ci = &zio_checksum_table[checksum];
270 zio_checksum_template_init(checksum, NULL);
274 ASSERT(checksum == ZIO_CHECKSUM_GANG_HEADER ||
275 checksum == ZIO_CHECKSUM_LABEL);
279 if (checksum == ZIO_CHECKSUM_GANG_HEADER)
281 else if (checksum == ZIO_CHECKSUM_LABEL)
306 /*printf("ZFS: read checksum failed\n");*/
380 uintptr_t rm_reports; /* # of referencing checksum reports */
382 uint8_t rm_ecksuminjected; /* checksum error was injected */
1325 * data we read. If it doesn't, we fire off a checksum error. Return the
1614 * has a valid checksum. Naturally, this case applies in the absence of
1757 * Start checksum ereports for all children which haven't