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