Lines Matching refs:fs
50 struct fs *fs = &sblock; in pass5() local
68 newcg->cg_niblk = fs->fs_ipg; in pass5()
70 if (fs->fs_postblformat != FS_DYNAMICPOSTBLFMT) { in pass5()
72 fs->fs_postblformat); in pass5()
93 newcg->cg_boff = newcg->cg_btotoff + fs->fs_cpg * sizeof (daddr32_t); in pass5()
95 fs->fs_cpg * fs->fs_nrpos * sizeof (uint16_t); in pass5()
98 inomapsize = howmany(fs->fs_ipg, NBBY); in pass5()
100 blkmapsize = howmany(fs->fs_fpg, NBBY); in pass5()
119 j = blknum(fs, (uint64_t)fs->fs_size + fs->fs_frag - 1); in pass5()
120 for (i = fs->fs_size; i < j; i++) in pass5()
135 for (c = 0; c < fs->fs_ncg; c++) { in pass5()
141 (void) getblk(&cgblk, (diskaddr_t)cgtod(fs, c), in pass5()
142 (size_t)fs->fs_cgsize); in pass5()
162 dbase = cgbase(fs, c); in pass5()
163 dmax = dbase + fs->fs_fpg; in pass5()
164 if (dmax > fs->fs_size) in pass5()
165 dmax = fs->fs_size; in pass5()
167 if (c == fs->fs_ncg - 1) in pass5()
168 newcg->cg_ncyl = fs->fs_ncyl - (fs->fs_cpg * c); in pass5()
170 newcg->cg_ncyl = fs->fs_cpg; in pass5()
175 newcg->cg_cs.cs_nifree = fs->fs_ipg; in pass5()
194 j = fs->fs_ipg * c; in pass5()
195 for (i = 0; i < fs->fs_ipg; j++, i++) { in pass5()
237 d += fs->fs_frag, i += fs->fs_frag) { in pass5()
239 for (j = 0; j < fs->fs_frag; j++) { in pass5()
245 if (frags == fs->fs_frag) { in pass5()
247 j = cbtocylno(fs, i); in pass5()
251 cg_blks(fs, newcg, j)[cbtorpos(fs, i)]++; in pass5() local
254 blk = blkmap(fs, cg_blksfree(newcg), i); in pass5()
255 fragacct(fs, blk, newcg->cg_frsum, 1); in pass5()
276 cs = &fs->fs_cs(fs, c); in pass5()
326 cg->cg_cgx * fs->fs_ipg, "DIR", 0, excessdirs)) { in pass5()
345 cg->cg_cgx * fs->fs_ipg, "FILE", excessdirs, fs->fs_ipg)) { in pass5()
361 cg->cg_cgx * fs->fs_fpg, "FRAG", 0, fs->fs_fpg)) { in pass5()
375 bad_cgblks_cg = (memcmp((void *)&cg_blks(fs, cg, 0)[0], in pass5()
376 (void *)&cg_blks(fs, newcg, 0)[0], in pass5()
377 fs->fs_cpg * fs->fs_nrpos * sizeof (int16_t)) != 0); in pass5()
384 (void) memmove((void *)&cg_blks(fs, cg, 0)[0], in pass5()
385 (void *)&cg_blks(fs, newcg, 0)[0], in pass5()
386 fs->fs_cpg * fs->fs_nrpos * in pass5()
398 fs->fs_cpg * sizeof (int32_t)) != 0); in pass5()
407 fs->fs_cpg * sizeof (int32_t)); in pass5()
429 (memcmp((void *)&cstotal, (void *)&fs->fs_cstotal, in pass5()
432 (void) memmove((void *)&fs->fs_cstotal, in pass5()
434 fs->fs_ronly = 0; in pass5()
435 fs->fs_fmod = 0; in pass5()