Home | History | Annotate | Download | only in gpt-utils

Lines Matching refs:crc

292     uint32_t crc;
341 crc = crc32(0, pentries, pentries_array_size);
342 if (GET_4_BYTES(gpt_header + PARTITION_CRC_OFFSET) != crc) {
343 fprintf(stderr, "Primary GPT partition entries array CRC invalid\n");
364 crc = crc32(0, pentries, pentries_array_size);
365 PUT_4_BYTES(gpt_header + PARTITION_CRC_OFFSET, crc);
367 /* header CRC is calculated with this field cleared */
369 crc = crc32(0, gpt_header, gpt_header_size);
370 PUT_4_BYTES(gpt_header + HEADER_CRC_OFFSET, crc);
390 * \brief Checks GPT state (header signature and CRC)
405 uint32_t crc;
438 crc = GET_4_BYTES(gpt_header + HEADER_CRC_OFFSET);
439 /* header CRC is calculated with this field cleared */
441 if (crc32(0, gpt_header, gpt_header_size) != crc)
471 uint32_t crc;
508 /* header CRC is calculated with this field cleared */
510 crc = crc32(0, gpt_header, gpt_header_size);
511 PUT_4_BYTES(gpt_header + HEADER_CRC_OFFSET, crc);
777 fprintf(stderr, "%s: GPT headers CRC corruption detected, aborting\n",
1468 //Update CRC values for the various components of the gpt_disk
1479 //Recalculate the CRC of the primary partiton array
1483 //Recalculate the CRC of the backup partition array
1487 //Update the partition CRC value in the primary GPT header
1489 //Update the partition CRC value in the backup GPT header
1492 //Update the CRC value of the primary header
1494 //Header CRC is calculated with its own CRC field set to 0