Symbol: acg
sbin/badsect/badsect.c
179
(char *)&acg);
sbin/badsect/badsect.c
180
if (!cg_chkmagic(&acg)) {
sbin/badsect/badsect.c
186
if (isclr(cg_blksfree(&acg), bn))
sbin/badsect/badsect.c
62
struct cg acg;
sbin/dumpfs/dumpfs.c
256
if (read(fd, &acg, afs.fs_bsize) != afs.fs_bsize) {
sbin/dumpfs/dumpfs.c
260
cg_time = acg.cg_time;
sbin/dumpfs/dumpfs.c
263
((struct ocg *)&acg)->cg_magic : acg.cg_magic,
sbin/dumpfs/dumpfs.c
266
acg.cg_cgx, acg.cg_ncyl, acg.cg_niblk, acg.cg_ndblk);
sbin/dumpfs/dumpfs.c
268
acg.cg_cs.cs_nbfree, acg.cg_cs.cs_ndir,
sbin/dumpfs/dumpfs.c
269
acg.cg_cs.cs_nifree, acg.cg_cs.cs_nffree);
sbin/dumpfs/dumpfs.c
271
acg.cg_rotor, acg.cg_irotor, acg.cg_frotor);
sbin/dumpfs/dumpfs.c
273
printf("\t%d", acg.cg_frsum[i]);
sbin/dumpfs/dumpfs.c
274
j += i * acg.cg_frsum[i];
sbin/dumpfs/dumpfs.c
283
printf("\t%d", cg_clustersum(&acg)[i]);
sbin/dumpfs/dumpfs.c
287
cg_clustersum(&acg)[afs.fs_contigsumsize]);
sbin/dumpfs/dumpfs.c
289
pbits(cg_clustersfree(&acg), acg.cg_nclusterblks);
sbin/dumpfs/dumpfs.c
293
pbits(cg_inosused(&acg), afs.fs_ipg);
sbin/dumpfs/dumpfs.c
295
pbits(cg_blksfree(&acg), afs.fs_fpg);
sbin/dumpfs/dumpfs.c
298
if (cg_blktot(&acg)[i] == 0)
sbin/dumpfs/dumpfs.c
300
printf(" c%d:\t(%d)\t", i, cg_blktot(&acg)[i]);
sbin/dumpfs/dumpfs.c
305
printf(" %d", cg_blks(&afs, &acg, i)[j]);
sbin/ffsinfo/ffsinfo.c
347
(size_t)sblock.fs_cgsize, &acg, fsi);
sbin/ffsinfo/ffsinfo.c
351
&acg);
sbin/ffsinfo/ffsinfo.c
356
&acg);
sbin/ffsinfo/ffsinfo.c
361
&acg);
sbin/ffsinfo/ffsinfo.c
366
&acg);
sbin/ffsinfo/ffsinfo.c
369
&acg);
sbin/ffsinfo/ffsinfo.c
374
&acg);
sbin/growfs/growfs.c
1000
if(isclr(cg_clustersfree(&acg), block)){
sbin/growfs/growfs.c
1023
setbit(cg_blksfree(&acg), d%sblock.fs_fpg);
sbin/growfs/growfs.c
1024
acg.cg_cs.cs_nffree++;
sbin/growfs/growfs.c
1034
if(isblock(&sblock, cg_blksfree(&acg),
sbin/growfs/growfs.c
1038
acg.cg_cs.cs_nffree-=sblock.fs_frag;
sbin/growfs/growfs.c
1039
acg.cg_cs.cs_nbfree++;
sbin/growfs/growfs.c
1042
cg_blktot(&acg)[cbtocylno(&sblock,
sbin/growfs/growfs.c
1044
cg_blks(&sblock, &acg, cbtocylno(&sblock,
sbin/growfs/growfs.c
1048
setbit(cg_clustersfree(&acg),
sbin/growfs/growfs.c
1052
cg_clustersum(&acg)
sbin/growfs/growfs.c
1056
cg_clustersum(&acg)[lcs]++;
sbin/growfs/growfs.c
1074
setblock(&sblock, cg_blksfree(&acg),
sbin/growfs/growfs.c
1076
acg.cg_cs.cs_nbfree++;
sbin/growfs/growfs.c
1078
cg_blktot(&acg)[cbtocylno(&sblock, d%sblock.fs_fpg)]++;
sbin/growfs/growfs.c
1079
cg_blks(&sblock, &acg, cbtocylno(&sblock,
sbin/growfs/growfs.c
1083
setbit(cg_clustersfree(&acg),
sbin/growfs/growfs.c
1090
cg_clustersum(&acg)[lcs]--;
sbin/growfs/growfs.c
1093
cg_clustersum(&acg)[lcs]++;
sbin/growfs/growfs.c
1097
*cs = acg.cg_cs;
sbin/growfs/growfs.c
1104
(size_t)sblock.fs_cgsize, &acg, fso, Nflag);
sbin/growfs/growfs.c
1108
&acg);
sbin/growfs/growfs.c
1150
clrblock(&sblock, cg_blksfree(&acg),
sbin/growfs/growfs.c
1152
acg.cg_cs.cs_nbfree--;
sbin/growfs/growfs.c
1154
cg_blktot(&acg)[cbtocylno(&sblock, d%sblock.fs_fpg)]--;
sbin/growfs/growfs.c
1155
cg_blks(&sblock, &acg, cbtocylno(&sblock,
sbin/growfs/growfs.c
1159
clrbit(cg_clustersfree(&acg),
sbin/growfs/growfs.c
1172
clrbit(cg_blksfree(&acg), d%sblock.fs_fpg);
sbin/growfs/growfs.c
1173
acg.cg_cs.cs_nffree--;
sbin/growfs/growfs.c
1176
acg.cg_cs.cs_nbfree--;
sbin/growfs/growfs.c
1177
acg.cg_cs.cs_nffree+=sblock.fs_frag;
sbin/growfs/growfs.c
1180
cg_blktot(&acg)[cbtocylno(&sblock, d%sblock.fs_fpg)]--;
sbin/growfs/growfs.c
1181
cg_blks(&sblock, &acg, cbtocylno(&sblock,
sbin/growfs/growfs.c
1185
clrbit(cg_clustersfree(&acg),
sbin/growfs/growfs.c
1204
*cs = acg.cg_cs;
sbin/growfs/growfs.c
1211
(size_t)sblock.fs_cgsize, &acg, fso, Nflag);
sbin/growfs/growfs.c
1215
&acg);
sbin/growfs/growfs.c
1259
if(isclr(cg_blksfree(&acg), d)) {
sbin/growfs/growfs.c
1269
clrbit(cg_blksfree(&acg), d);
sbin/growfs/growfs.c
1270
acg.cg_cs.cs_nffree--;
sbin/growfs/growfs.c
1289
if(!isblock(&sblock, cg_blksfree(&acg), d/sblock.fs_frag)) {
sbin/growfs/growfs.c
1292
acg.cg_cs.cs_nffree--;
sbin/growfs/growfs.c
1296
clrblock(&sblock, cg_blksfree(&acg), d/sblock.fs_frag);
sbin/growfs/growfs.c
1300
clrblock(&sblock, cg_blksfree(&acg), d/sblock.fs_frag);
sbin/growfs/growfs.c
1301
acg.cg_cs.cs_nbfree--;
sbin/growfs/growfs.c
1303
cg_blktot(&acg)[cbtocylno(&sblock, d)]--;
sbin/growfs/growfs.c
1304
cg_blks(&sblock, &acg, cbtocylno(&sblock, d))
sbin/growfs/growfs.c
1307
clrbit(cg_clustersfree(&acg), d/sblock.fs_frag);
sbin/growfs/growfs.c
1311
if(isclr(cg_clustersfree(&acg),l)){
sbin/growfs/growfs.c
1316
cg_clustersum(&acg)[lcs+1]--;
sbin/growfs/growfs.c
1318
cg_clustersum(&acg)[lcs]++;
sbin/growfs/growfs.c
1335
if(isblock(&sblock, cg_blksfree(&acg), d/sblock.fs_frag)) {
sbin/growfs/growfs.c
1336
acg.cg_cs.cs_nbfree--;
sbin/growfs/growfs.c
1338
acg.cg_cs.cs_nffree+=sblock.fs_frag;
sbin/growfs/growfs.c
1340
cg_blktot(&acg)[cbtocylno(&sblock, d)]--;
sbin/growfs/growfs.c
1341
cg_blks(&sblock, &acg, cbtocylno(&sblock, d))
sbin/growfs/growfs.c
1344
clrbit(cg_clustersfree(&acg), d/sblock.fs_frag);
sbin/growfs/growfs.c
1348
if(isclr(cg_clustersfree(&acg),l)){
sbin/growfs/growfs.c
1353
cg_clustersum(&acg)[lcs+1]--;
sbin/growfs/growfs.c
1355
cg_clustersum(&acg)[lcs]++;
sbin/growfs/growfs.c
1364
if(isclr(cg_blksfree(&acg), d)) {
sbin/growfs/growfs.c
1368
clrbit(cg_blksfree(&acg), d);
sbin/growfs/growfs.c
1369
acg.cg_cs.cs_nffree--;
sbin/growfs/growfs.c
1407
setbit(cg_blksfree(&acg), g);
sbin/growfs/growfs.c
1408
acg.cg_cs.cs_nffree++;
sbin/growfs/growfs.c
1426
setbit(cg_blksfree(&acg), g);
sbin/growfs/growfs.c
1427
acg.cg_cs.cs_nffree++;
sbin/growfs/growfs.c
1446
if(isclr(cg_blksfree(&acg), f)) {
sbin/growfs/growfs.c
1447
setbit(cg_blksfree(&acg), f);
sbin/growfs/growfs.c
1448
acg.cg_cs.cs_nffree++;
sbin/growfs/growfs.c
1518
*cs = acg.cg_cs;
sbin/growfs/growfs.c
1524
&acg, fso, Nflag);
sbin/growfs/growfs.c
1528
&acg);
sbin/growfs/growfs.c
1601
if (acg.cg_magic != CG_MAGIC) {
sbin/growfs/growfs.c
1606
if (acg.cg_cs.cs_nbfree == 0) {
sbin/growfs/growfs.c
1618
dlower=cgsblock(&sblock, acg.cg_cgx)-cgbase(&sblock, acg.cg_cgx);
sbin/growfs/growfs.c
1619
dupper=cgdmin(&sblock, acg.cg_cgx)-cgbase(&sblock, acg.cg_cgx);
sbin/growfs/growfs.c
1620
dmax=cgbase(&sblock, acg.cg_cgx)+sblock.fs_fpg;
sbin/growfs/growfs.c
1624
dmax-=cgbase(&sblock, acg.cg_cgx); /* retransform into cg */
sbin/growfs/growfs.c
1625
csmin=sblock.fs_csaddr-cgbase(&sblock, acg.cg_cgx);
sbin/growfs/growfs.c
1639
if(isblock(&sblock, cg_blksfree(&acg), fragstoblks(&sblock,
sbin/growfs/growfs.c
1649
if(isblock(&sblock, cg_blksfree(&acg), fragstoblks(&sblock,
sbin/growfs/growfs.c
1666
clrblock(&sblock, cg_blksfree(&acg), blkno);
sbin/growfs/growfs.c
1671
clrbit(cg_clustersfree(&acg), blkno);
sbin/growfs/growfs.c
1681
if(isclr(cg_clustersfree(&acg),l)){
sbin/growfs/growfs.c
1691
if(isclr(cg_clustersfree(&acg),l)){
sbin/growfs/growfs.c
1699
cg_clustersum(&acg)[MIN(lcs1+lcs2+1,sblock.fs_contigsumsize)]--;
sbin/growfs/growfs.c
1701
cg_clustersum(&acg)[lcs1]++;
sbin/growfs/growfs.c
1704
cg_clustersum(&acg)[lcs2]++;
sbin/growfs/growfs.c
1710
acg.cg_cs.cs_nbfree--;
sbin/growfs/growfs.c
1712
cg_blktot(&acg)[cbtocylno(&sblock, d)]--;
sbin/growfs/growfs.c
1713
cg_blks(&sblock, &acg, cbtocylno(&sblock, d))[cbtorpos(&sblock, d)]--;
sbin/growfs/growfs.c
2213
setbit(cg_clustersfree(&acg), block);
sbin/growfs/growfs.c
2223
if(isclr(cg_clustersfree(&acg), block)){
sbin/growfs/growfs.c
2230
cg_clustersum(&acg)[lcs]--;
sbin/growfs/growfs.c
2233
cg_clustersum(&acg)[lcs]++;
sbin/growfs/growfs.c
371
memset(&acg, 0, (size_t)sblock.fs_cgsize);
sbin/growfs/growfs.c
372
acg.cg_time = utime;
sbin/growfs/growfs.c
373
acg.cg_magic = CG_MAGIC;
sbin/growfs/growfs.c
374
acg.cg_cgx = cylno;
sbin/growfs/growfs.c
376
acg.cg_ncyl = sblock.fs_ncyl % sblock.fs_cpg;
sbin/growfs/growfs.c
378
acg.cg_ncyl = sblock.fs_cpg;
sbin/growfs/growfs.c
380
acg.cg_niblk = sblock.fs_ipg;
sbin/growfs/growfs.c
381
acg.cg_ndblk = dmax - cbase;
sbin/growfs/growfs.c
383
acg.cg_nclusterblks = acg.cg_ndblk / sblock.fs_frag;
sbin/growfs/growfs.c
385
acg.cg_btotoff = &acg.cg_space[0] - (u_char *)(&acg.cg_firstfield);
sbin/growfs/growfs.c
386
acg.cg_boff = acg.cg_btotoff + sblock.fs_cpg * sizeof(int32_t);
sbin/growfs/growfs.c
387
acg.cg_iusedoff = acg.cg_boff +
sbin/growfs/growfs.c
389
acg.cg_freeoff = acg.cg_iusedoff + howmany(sblock.fs_ipg, NBBY);
sbin/growfs/growfs.c
391
acg.cg_nextfreeoff = acg.cg_freeoff +
sbin/growfs/growfs.c
394
acg.cg_clustersumoff = acg.cg_freeoff + howmany
sbin/growfs/growfs.c
397
acg.cg_clustersumoff =
sbin/growfs/growfs.c
398
roundup(acg.cg_clustersumoff, sizeof(u_int32_t));
sbin/growfs/growfs.c
399
acg.cg_clusteroff = acg.cg_clustersumoff +
sbin/growfs/growfs.c
401
acg.cg_nextfreeoff = acg.cg_clusteroff + howmany
sbin/growfs/growfs.c
404
if (acg.cg_nextfreeoff-(intptr_t)(&acg.cg_firstfield) > sblock.fs_cgsize) {
sbin/growfs/growfs.c
411
acg.cg_cs.cs_nifree += sblock.fs_ipg;
sbin/growfs/growfs.c
414
setbit(cg_inosused(&acg), i);
sbin/growfs/growfs.c
415
acg.cg_cs.cs_nifree--;
sbin/growfs/growfs.c
428
setblock(&sblock, cg_blksfree(&acg), blkno);
sbin/growfs/growfs.c
430
setbit(cg_clustersfree(&acg), blkno);
sbin/growfs/growfs.c
432
acg.cg_cs.cs_nbfree++;
sbin/growfs/growfs.c
433
cg_blktot(&acg)[cbtocylno(&sblock, d)]++;
sbin/growfs/growfs.c
434
cg_blks(&sblock, &acg, cbtocylno(&sblock, d))
sbin/growfs/growfs.c
438
sblock.fs_dsize += acg.cg_ndblk - dupper;
sbin/growfs/growfs.c
440
acg.cg_frsum[sblock.fs_frag - i]++;
sbin/growfs/growfs.c
442
setbit(cg_blksfree(&acg), dupper);
sbin/growfs/growfs.c
443
acg.cg_cs.cs_nffree++;
sbin/growfs/growfs.c
448
setblock(&sblock, cg_blksfree(&acg), blkno);
sbin/growfs/growfs.c
450
setbit(cg_clustersfree(&acg), blkno);
sbin/growfs/growfs.c
452
acg.cg_cs.cs_nbfree++;
sbin/growfs/growfs.c
453
cg_blktot(&acg)[cbtocylno(&sblock, d)]++;
sbin/growfs/growfs.c
454
cg_blks(&sblock, &acg, cbtocylno(&sblock, d))
sbin/growfs/growfs.c
459
acg.cg_frsum[dmax - cbase - d]++;
sbin/growfs/growfs.c
461
setbit(cg_blksfree(&acg), d);
sbin/growfs/growfs.c
462
acg.cg_cs.cs_nffree++;
sbin/growfs/growfs.c
466
int32_t *sump = cg_clustersum(&acg);
sbin/growfs/growfs.c
467
u_char *mapp = cg_clustersfree(&acg);
sbin/growfs/growfs.c
472
for (i = 0; i < acg.cg_nclusterblks; i++) {
sbin/growfs/growfs.c
496
sblock.fs_cstotal.cs_ndir += acg.cg_cs.cs_ndir;
sbin/growfs/growfs.c
497
sblock.fs_cstotal.cs_nffree += acg.cg_cs.cs_nffree;
sbin/growfs/growfs.c
498
sblock.fs_cstotal.cs_nbfree += acg.cg_cs.cs_nbfree;
sbin/growfs/growfs.c
499
sblock.fs_cstotal.cs_nifree += acg.cg_cs.cs_nifree;
sbin/growfs/growfs.c
500
*cs = acg.cg_cs;
sbin/growfs/growfs.c
502
(size_t)sblock.fs_bsize, &acg, fso, Nflag);
sbin/growfs/growfs.c
505
&acg);
sbin/growfs/growfs.c
537
if(isset(cg_blksfree(&acg), f)) {
sbin/growfs/growfs.c
544
acg.cg_frsum[fragsize]+=sign;
sbin/growfs/growfs.c
556
acg.cg_frsum[fragsize]+=sign;
sbin/growfs/growfs.c
689
acg.cg_ncyl=sblock.fs_cpg;
sbin/growfs/growfs.c
692
(size_t)sblock.fs_cgsize, &acg, fso, Nflag);
sbin/growfs/growfs.c
696
&acg);
sbin/growfs/growfs.c
718
acg.cg_time = utime;
sbin/growfs/growfs.c
723
acg.cg_ncyl = sblock.fs_ncyl % sblock.fs_cpg;
sbin/growfs/growfs.c
725
acg.cg_ncyl = sblock.fs_cpg;
sbin/growfs/growfs.c
730
acg.cg_ncyl,
sbin/growfs/growfs.c
732
acg.cg_ndblk = dmax - cbase;
sbin/growfs/growfs.c
733
sblock.fs_dsize += acg.cg_ndblk-aocg.cg_ndblk;
sbin/growfs/growfs.c
735
acg.cg_nclusterblks = acg.cg_ndblk / sblock.fs_frag;
sbin/growfs/growfs.c
760
setbit(cg_blksfree(&acg), i);
sbin/growfs/growfs.c
761
acg.cg_cs.cs_nffree++;
sbin/growfs/growfs.c
770
if(isblock(&sblock, cg_blksfree(&acg),
sbin/growfs/growfs.c
777
acg.cg_frsum[osblock.fs_size%sblock.fs_frag]--;
sbin/growfs/growfs.c
778
acg.cg_cs.cs_nbfree++;
sbin/growfs/growfs.c
779
acg.cg_cs.cs_nffree-=sblock.fs_frag;
sbin/growfs/growfs.c
782
cg_blktot(&acg)[cbtocylno(&sblock, k)]++;
sbin/growfs/growfs.c
783
cg_blks(&sblock, &acg, cbtocylno(&sblock, k))
sbin/growfs/growfs.c
792
while(isset(cg_blksfree(&acg), i) &&
sbin/growfs/growfs.c
799
acg.cg_frsum[k]--;
sbin/growfs/growfs.c
801
acg.cg_frsum[k+j]++;
sbin/growfs/growfs.c
811
setbit(cg_blksfree(&acg), i);
sbin/growfs/growfs.c
812
acg.cg_cs.cs_nffree++;
sbin/growfs/growfs.c
819
while(isset(cg_blksfree(&acg), i) &&
sbin/growfs/growfs.c
826
acg.cg_frsum[k]--;
sbin/growfs/growfs.c
828
acg.cg_frsum[k+j]++;
sbin/growfs/growfs.c
839
setblock(&sblock, cg_blksfree(&acg), j);
sbin/growfs/growfs.c
841
acg.cg_cs.cs_nbfree++;
sbin/growfs/growfs.c
842
cg_blktot(&acg)[cbtocylno(&sblock, i)]++;
sbin/growfs/growfs.c
843
cg_blks(&sblock, &acg, cbtocylno(&sblock, i))
sbin/growfs/growfs.c
853
acg.cg_frsum[dmax - cbase - i]++;
sbin/growfs/growfs.c
855
setbit(cg_blksfree(&acg), i);
sbin/growfs/growfs.c
856
acg.cg_cs.cs_nffree++;
sbin/growfs/growfs.c
861
(acg.cg_cs.cs_nffree - aocg.cg_cs.cs_nffree);
sbin/growfs/growfs.c
863
(acg.cg_cs.cs_nbfree - aocg.cg_cs.cs_nbfree);
sbin/growfs/growfs.c
871
*cs = acg.cg_cs;
sbin/growfs/growfs.c
877
&acg, fso, Nflag);
sbin/growfs/growfs.c
881
&acg);
sbin/growfs/growfs.c
952
acg.cg_time = utime;
sbin/newfs/mkfs.c
1053
(char *)&acg);
sbin/newfs/mkfs.c
1054
if (acg.cg_magic != CG_MAGIC) {
sbin/newfs/mkfs.c
1058
if (acg.cg_cs.cs_nbfree == 0) {
sbin/newfs/mkfs.c
1062
for (d = 0; d < acg.cg_ndblk; d += sblock.fs_frag)
sbin/newfs/mkfs.c
1063
if (isblock(&sblock, cg_blksfree(&acg), d / sblock.fs_frag))
sbin/newfs/mkfs.c
1069
clrblock(&sblock, cg_blksfree(&acg), blkno);
sbin/newfs/mkfs.c
1071
clrbit(cg_clustersfree(&acg), blkno);
sbin/newfs/mkfs.c
1072
acg.cg_cs.cs_nbfree--;
sbin/newfs/mkfs.c
1076
acg.cg_cs.cs_ndir++;
sbin/newfs/mkfs.c
1080
cg_blktot(&acg)[cbtocylno(&sblock, d)]--;
sbin/newfs/mkfs.c
1081
cg_blks(&sblock, &acg, cbtocylno(&sblock, d))[cbtorpos(&sblock, d)]--;
sbin/newfs/mkfs.c
1086
acg.cg_cs.cs_nffree += sblock.fs_frag - frag;
sbin/newfs/mkfs.c
1087
acg.cg_frsum[sblock.fs_frag - frag]++;
sbin/newfs/mkfs.c
1089
setbit(cg_blksfree(&acg), d + i);
sbin/newfs/mkfs.c
1092
(char *)&acg);
sbin/newfs/mkfs.c
1143
(char *)&acg);
sbin/newfs/mkfs.c
1144
if (acg.cg_magic != CG_MAGIC) {
sbin/newfs/mkfs.c
1148
acg.cg_cs.cs_nifree--;
sbin/newfs/mkfs.c
1149
setbit(cg_inosused(&acg), ino);
sbin/newfs/mkfs.c
1151
(char *)&acg);
sbin/newfs/mkfs.c
789
memset(&acg, 0, sblock.fs_cgsize);
sbin/newfs/mkfs.c
790
acg.cg_time = utime;
sbin/newfs/mkfs.c
791
acg.cg_magic = CG_MAGIC;
sbin/newfs/mkfs.c
792
acg.cg_cgx = cylno;
sbin/newfs/mkfs.c
794
acg.cg_ncyl = sblock.fs_ncyl % sblock.fs_cpg;
sbin/newfs/mkfs.c
796
acg.cg_ncyl = sblock.fs_cpg;
sbin/newfs/mkfs.c
797
acg.cg_niblk = sblock.fs_ipg;
sbin/newfs/mkfs.c
798
acg.cg_ndblk = dmax - cbase;
sbin/newfs/mkfs.c
800
acg.cg_nclusterblks = acg.cg_ndblk / sblock.fs_frag;
sbin/newfs/mkfs.c
801
acg.cg_btotoff = &acg.cg_space[0] - (u_char *)(&acg.cg_firstfield);
sbin/newfs/mkfs.c
802
acg.cg_boff = acg.cg_btotoff + sblock.fs_cpg * sizeof(int32_t);
sbin/newfs/mkfs.c
803
acg.cg_iusedoff = acg.cg_boff +
sbin/newfs/mkfs.c
805
acg.cg_freeoff = acg.cg_iusedoff + howmany(sblock.fs_ipg, NBBY);
sbin/newfs/mkfs.c
807
acg.cg_nextfreeoff = acg.cg_freeoff +
sbin/newfs/mkfs.c
810
acg.cg_clustersumoff = acg.cg_freeoff + howmany
sbin/newfs/mkfs.c
813
acg.cg_clustersumoff =
sbin/newfs/mkfs.c
814
roundup(acg.cg_clustersumoff, sizeof(u_int32_t));
sbin/newfs/mkfs.c
815
acg.cg_clusteroff = acg.cg_clustersumoff +
sbin/newfs/mkfs.c
817
acg.cg_nextfreeoff = acg.cg_clusteroff + howmany
sbin/newfs/mkfs.c
820
if (acg.cg_nextfreeoff - (long)(&acg.cg_firstfield) > sblock.fs_cgsize) {
sbin/newfs/mkfs.c
824
acg.cg_cs.cs_nifree += sblock.fs_ipg;
sbin/newfs/mkfs.c
827
setbit(cg_inosused(&acg), k);
sbin/newfs/mkfs.c
828
acg.cg_cs.cs_nifree--;
sbin/newfs/mkfs.c
849
setblock(&sblock, cg_blksfree(&acg), blkno);
sbin/newfs/mkfs.c
851
setbit(cg_clustersfree(&acg), blkno);
sbin/newfs/mkfs.c
852
acg.cg_cs.cs_nbfree++;
sbin/newfs/mkfs.c
853
cg_blktot(&acg)[cbtocylno(&sblock, d)]++;
sbin/newfs/mkfs.c
854
cg_blks(&sblock, &acg, cbtocylno(&sblock, d))
sbin/newfs/mkfs.c
859
sblock.fs_dsize += acg.cg_ndblk - dupper;
sbin/newfs/mkfs.c
861
acg.cg_frsum[sblock.fs_frag - i]++;
sbin/newfs/mkfs.c
863
setbit(cg_blksfree(&acg), dupper);
sbin/newfs/mkfs.c
864
acg.cg_cs.cs_nffree++;
sbin/newfs/mkfs.c
869
setblock(&sblock, cg_blksfree(&acg), blkno);
sbin/newfs/mkfs.c
871
setbit(cg_clustersfree(&acg), blkno);
sbin/newfs/mkfs.c
872
acg.cg_cs.cs_nbfree++;
sbin/newfs/mkfs.c
873
cg_blktot(&acg)[cbtocylno(&sblock, d)]++;
sbin/newfs/mkfs.c
874
cg_blks(&sblock, &acg, cbtocylno(&sblock, d))
sbin/newfs/mkfs.c
879
acg.cg_frsum[dmax - cbase - d]++;
sbin/newfs/mkfs.c
881
setbit(cg_blksfree(&acg), d);
sbin/newfs/mkfs.c
882
acg.cg_cs.cs_nffree++;
sbin/newfs/mkfs.c
886
int32_t *sump = cg_clustersum(&acg);
sbin/newfs/mkfs.c
887
u_char *mapp = cg_clustersfree(&acg);
sbin/newfs/mkfs.c
892
for (i = 0; i < acg.cg_nclusterblks; i++) {
sbin/newfs/mkfs.c
914
sblock.fs_cstotal.cs_ndir += acg.cg_cs.cs_ndir;
sbin/newfs/mkfs.c
915
sblock.fs_cstotal.cs_nffree += acg.cg_cs.cs_nffree;
sbin/newfs/mkfs.c
916
sblock.fs_cstotal.cs_nbfree += acg.cg_cs.cs_nbfree;
sbin/newfs/mkfs.c
917
sblock.fs_cstotal.cs_nifree += acg.cg_cs.cs_nifree;
sbin/newfs/mkfs.c
918
*cs = acg.cg_cs;
sbin/newfs/mkfs.c
920
sblock.fs_bsize, (char *)&acg);
usr.sbin/makefs/ffs/mkfs.c
684
memset(&acg, 0, sblock.fs_cgsize);
usr.sbin/makefs/ffs/mkfs.c
685
acg.cg_time = utime;
usr.sbin/makefs/ffs/mkfs.c
686
acg.cg_magic = CG_MAGIC;
usr.sbin/makefs/ffs/mkfs.c
687
acg.cg_cgx = cylno;
usr.sbin/makefs/ffs/mkfs.c
688
acg.cg_niblk = sblock.fs_ipg;
usr.sbin/makefs/ffs/mkfs.c
690
acg.cg_initediblk = MIN(sblock.fs_ipg, 2 * INOPB(&sblock));
usr.sbin/makefs/ffs/mkfs.c
692
acg.cg_ndblk = dmax - cbase;
usr.sbin/makefs/ffs/mkfs.c
694
acg.cg_nclusterblks = acg.cg_ndblk >> sblock.fs_fragshift;
usr.sbin/makefs/ffs/mkfs.c
695
start = &acg.cg_space[0] - (u_char *)(&acg.cg_firstfield);
usr.sbin/makefs/ffs/mkfs.c
698
acg.cg_iusedoff = start;
usr.sbin/makefs/ffs/mkfs.c
704
acg.cg_old_ncyl = howmany(acg.cg_ndblk,
usr.sbin/makefs/ffs/mkfs.c
707
acg.cg_ncyl = sblock.fs_ncyl % sblock.fs_cpg;
usr.sbin/makefs/ffs/mkfs.c
710
acg.cg_old_ncyl = sblock.fs_old_cpg;
usr.sbin/makefs/ffs/mkfs.c
712
acg.cg_old_time = acg.cg_time;
usr.sbin/makefs/ffs/mkfs.c
713
acg.cg_time = 0;
usr.sbin/makefs/ffs/mkfs.c
714
acg.cg_old_niblk = acg.cg_niblk;
usr.sbin/makefs/ffs/mkfs.c
715
acg.cg_niblk = 0;
usr.sbin/makefs/ffs/mkfs.c
716
acg.cg_initediblk = 0;
usr.sbin/makefs/ffs/mkfs.c
718
acg.cg_old_btotoff = start;
usr.sbin/makefs/ffs/mkfs.c
719
acg.cg_old_boff = acg.cg_old_btotoff +
usr.sbin/makefs/ffs/mkfs.c
721
acg.cg_iusedoff = acg.cg_old_boff +
usr.sbin/makefs/ffs/mkfs.c
724
acg.cg_freeoff = acg.cg_iusedoff + howmany(sblock.fs_ipg, CHAR_BIT);
usr.sbin/makefs/ffs/mkfs.c
726
acg.cg_nextfreeoff = acg.cg_freeoff +
usr.sbin/makefs/ffs/mkfs.c
729
acg.cg_clustersumoff = acg.cg_freeoff +
usr.sbin/makefs/ffs/mkfs.c
731
acg.cg_clustersumoff =
usr.sbin/makefs/ffs/mkfs.c
732
roundup(acg.cg_clustersumoff, sizeof(int32_t));
usr.sbin/makefs/ffs/mkfs.c
733
acg.cg_clusteroff = acg.cg_clustersumoff +
usr.sbin/makefs/ffs/mkfs.c
735
acg.cg_nextfreeoff = acg.cg_clusteroff +
usr.sbin/makefs/ffs/mkfs.c
738
if (acg.cg_nextfreeoff > (uint32_t)sblock.fs_cgsize) {
usr.sbin/makefs/ffs/mkfs.c
742
acg.cg_cs.cs_nifree += sblock.fs_ipg;
usr.sbin/makefs/ffs/mkfs.c
745
setbit(cg_inosused_swap(&acg, 0), i);
usr.sbin/makefs/ffs/mkfs.c
746
acg.cg_cs.cs_nifree--;
usr.sbin/makefs/ffs/mkfs.c
754
ffs_setblock(&sblock, cg_blksfree_swap(&acg, 0), blkno);
usr.sbin/makefs/ffs/mkfs.c
756
setbit(cg_clustersfree_swap(&acg, 0), blkno);
usr.sbin/makefs/ffs/mkfs.c
757
acg.cg_cs.cs_nbfree++;
usr.sbin/makefs/ffs/mkfs.c
759
cg_blktot(&acg)[cbtocylno(&sblock, d)]++;
usr.sbin/makefs/ffs/mkfs.c
760
cg_blks(&sblock, &acg, cbtocylno(&sblock, d))
usr.sbin/makefs/ffs/mkfs.c
768
acg.cg_frsum[sblock.fs_frag - i]++;
usr.sbin/makefs/ffs/mkfs.c
770
setbit(cg_blksfree_swap(&acg, 0), dupper);
usr.sbin/makefs/ffs/mkfs.c
771
acg.cg_cs.cs_nffree++;
usr.sbin/makefs/ffs/mkfs.c
775
d + sblock.fs_frag <= acg.cg_ndblk; ) {
usr.sbin/makefs/ffs/mkfs.c
776
ffs_setblock(&sblock, cg_blksfree_swap(&acg, 0), blkno);
usr.sbin/makefs/ffs/mkfs.c
778
setbit(cg_clustersfree_swap(&acg, 0), blkno);
usr.sbin/makefs/ffs/mkfs.c
779
acg.cg_cs.cs_nbfree++;
usr.sbin/makefs/ffs/mkfs.c
781
cg_blktot(&acg)[cbtocylno(&sblock, d)]++;
usr.sbin/makefs/ffs/mkfs.c
782
cg_blks(&sblock, &acg, cbtocylno(&sblock, d))
usr.sbin/makefs/ffs/mkfs.c
788
if (d < acg.cg_ndblk) {
usr.sbin/makefs/ffs/mkfs.c
789
acg.cg_frsum[acg.cg_ndblk - d]++;
usr.sbin/makefs/ffs/mkfs.c
790
for (; d < acg.cg_ndblk; d++) {
usr.sbin/makefs/ffs/mkfs.c
791
setbit(cg_blksfree_swap(&acg, 0), d);
usr.sbin/makefs/ffs/mkfs.c
792
acg.cg_cs.cs_nffree++;
usr.sbin/makefs/ffs/mkfs.c
796
int32_t *sump = cg_clustersum_swap(&acg, 0);
usr.sbin/makefs/ffs/mkfs.c
797
u_char *mapp = cg_clustersfree_swap(&acg, 0);
usr.sbin/makefs/ffs/mkfs.c
802
for (i = 0; i < acg.cg_nclusterblks; i++) {
usr.sbin/makefs/ffs/mkfs.c
824
sblock.fs_cs(&sblock, cylno) = acg.cg_cs;
usr.sbin/makefs/ffs/mkfs.c
830
memcpy(&iobuf[start], &acg, sblock.fs_cgsize);
usr.sbin/makefs/ffs/mkfs.c
832
ffs_cg_swap(&acg, (struct cg*)&iobuf[start], &sblock);
usr.sbin/makefs/ffs/mkfs.c
837
for (i = 0; i < acg.cg_initediblk; i++) {