Lines Matching defs:csums
116 static struct csum *csums;
324 * Load the cgs and csums off disk. Also allocates the space to load
337 csums = nfmalloc(oldsb->fs_cssize, "cg summary");
346 readat(FFS_FSBTODB(oldsb, oldsb->fs_csaddr), csums, oldsb->fs_cssize);
348 ffs_csum_swap(csums,csums,oldsb->fs_cssize);
618 csums[cgn] = cg->cg_cs;
882 errx(EXIT_FAILURE, "Sorry, no space available for new csums");
1022 /* Find out how big the csum area is, and realloc csums if bigger. */
1026 csums = nfrealloc(csums, newsb->fs_cssize, "new cg summary");
1970 * Put the updated summary info back into csums, and add it
1973 csums[cgn] = cg->cg_cs;
2016 csums[cgn] = cg->cg_cs;
2049 ffs_csum_swap(csums,csums,newsb->fs_cssize);
2050 writeat(FFS_FSBTODB(newsb, newsb->fs_csaddr), csums, newsb->fs_cssize);