• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.5.8/xnu-1228.15.4/bsd/vfs/

Lines Matching refs:checksum

90 // number of bytes to checksum in a block_list_header
188 // this isn't a great checksum routine but it will do for now.
189 // we use it to checksum the journal header and the block list
197 // this is a lame checksum but for now it'll do
403 jnl->jhdr->checksum = 0;
404 jnl->jhdr->checksum = calc_checksum((char *)jnl->jhdr, JOURNAL_HEADER_CKSUM_SIZE);
644 jnl->jhdr->checksum = SWAP32(jnl->jhdr->checksum);
657 blhdr->checksum = SWAP32(blhdr->checksum);
1004 int i, orig_checksum, checksum, check_block_checksums=0, bad_blocks=0;
1064 orig_checksum = blhdr->checksum;
1065 blhdr->checksum = 0;
1067 // calculate the checksum based on the unswapped data
1070 checksum = calc_checksum((char *)blhdr, BLHDR_CHECKSUM_SIZE);
1073 checksum = calc_checksum((char *)blhdr, BLHDR_CHECKSUM_SIZE);
1083 if (checksum != orig_checksum) {
1095 printf("jnl: %s: replay_journal: bad block list header @ 0x%llx (checksum 0x%x != 0x%x)\n",
1096 jnl->jdev_name, blhdr_offset, orig_checksum, checksum);
1196 // read the block so we can check the checksum
1206 // there is no need to swap the checksum from disk because
1616 int orig_checksum, checksum;
1671 orig_checksum = jnl->jhdr->checksum;
1672 jnl->jhdr->checksum = 0;
1677 checksum = calc_checksum((char *)jnl->jhdr, JOURNAL_HEADER_CKSUM_SIZE);
1681 checksum = calc_checksum((char *)jnl->jhdr, JOURNAL_HEADER_CKSUM_SIZE);
1693 if (orig_checksum != checksum) {
1694 printf("jnl: %s: open: journal checksum is bad (0x%x != 0x%x)\n",
1695 jdev_name, orig_checksum, checksum);
1826 int orig_checksum, checksum;
1877 orig_checksum = jnl.jhdr->checksum;
1878 jnl.jhdr->checksum = 0;
1883 checksum = calc_checksum((char *)jnl.jhdr, JOURNAL_HEADER_CKSUM_SIZE);
1887 checksum = calc_checksum((char *)jnl.jhdr, JOURNAL_HEADER_CKSUM_SIZE);
1897 if (orig_checksum != checksum) {
1898 printf("jnl: %s: is_clean: journal checksum is bad (0x%x != 0x%x)\n", jdev_name, orig_checksum, checksum);
2027 printf(" chksum: 0x%.8x\n", jnl->jhdr->checksum);
2179 // journal replay code checksum check depends on this.
2477 // journal replay code checksum check depends on this.
2864 blhdr->checksum = 0;
2865 blhdr->checksum = calc_checksum((char *)blhdr, BLHDR_CHECKSUM_SIZE);