Symbol: acg
sbin/badsect/badsect.c
167
(char *)&acg);
sbin/badsect/badsect.c
168
if (!cg_chkmagic(&acg)) {
sbin/badsect/badsect.c
174
if (isclr(cg_blksfree(&acg), bn))
sbin/dumpfs/dumpfs.c
343
if (pread(fd, &acg, afs.fs_bsize, cur) != afs.fs_bsize) {
sbin/dumpfs/dumpfs.c
349
cgtime = acg.cg_ffs2_time;
sbin/dumpfs/dumpfs.c
353
acg.cg_magic, (intmax_t)cur, ct);
sbin/dumpfs/dumpfs.c
356
acg.cg_magic, (intmax_t)cur, cgtime);
sbin/dumpfs/dumpfs.c
358
acg.cg_cgx, acg.cg_ndblk, acg.cg_ffs2_niblk,
sbin/dumpfs/dumpfs.c
359
acg.cg_initediblk);
sbin/dumpfs/dumpfs.c
362
cgtime = acg.cg_time;
sbin/dumpfs/dumpfs.c
367
((struct ocg *)&acg)->cg_magic : acg.cg_magic,
sbin/dumpfs/dumpfs.c
372
((struct ocg *)&acg)->cg_magic : acg.cg_magic,
sbin/dumpfs/dumpfs.c
375
acg.cg_cgx, acg.cg_ncyl, acg.cg_niblk, acg.cg_ndblk);
sbin/dumpfs/dumpfs.c
381
acg.cg_cs.cs_nbfree, acg.cg_cs.cs_ndir,
sbin/dumpfs/dumpfs.c
382
acg.cg_cs.cs_nifree, acg.cg_cs.cs_nffree);
sbin/dumpfs/dumpfs.c
384
acg.cg_rotor, acg.cg_irotor, acg.cg_frotor);
sbin/dumpfs/dumpfs.c
386
printf("\t%u", acg.cg_frsum[i]);
sbin/dumpfs/dumpfs.c
387
j += i * acg.cg_frsum[i];
sbin/dumpfs/dumpfs.c
396
printf("\t%d", cg_clustersum(&acg)[i]);
sbin/dumpfs/dumpfs.c
400
cg_clustersum(&acg)[afs.fs_contigsumsize]);
sbin/dumpfs/dumpfs.c
402
pbits(cg_clustersfree(&acg), acg.cg_nclusterblks);
sbin/dumpfs/dumpfs.c
406
pbits(cg_inosused(&acg), afs.fs_ipg);
sbin/dumpfs/dumpfs.c
408
pbits(cg_blksfree(&acg), afs.fs_fpg);
sbin/dumpfs/dumpfs.c
414
if (cg_blktot(&acg)[i] == 0)
sbin/dumpfs/dumpfs.c
416
printf(" c%d:\t(%d)\t", i, cg_blktot(&acg)[i]);
sbin/growfs/growfs.c
1002
*cs = acg.cg_cs;
sbin/growfs/growfs.c
1009
(size_t)sblock.fs_cgsize, (void *)&acg, fso, Nflag);
sbin/growfs/growfs.c
1044
clrblock(&sblock, cg_blksfree(&acg),
sbin/growfs/growfs.c
1046
acg.cg_cs.cs_nbfree--;
sbin/growfs/growfs.c
1049
clrbit(cg_clustersfree(&acg),
sbin/growfs/growfs.c
1062
clrbit(cg_blksfree(&acg), d%sblock.fs_fpg);
sbin/growfs/growfs.c
1063
acg.cg_cs.cs_nffree--;
sbin/growfs/growfs.c
1066
acg.cg_cs.cs_nbfree--;
sbin/growfs/growfs.c
1067
acg.cg_cs.cs_nffree += sblock.fs_frag;
sbin/growfs/growfs.c
1071
clrbit(cg_clustersfree(&acg),
sbin/growfs/growfs.c
1090
*cs = acg.cg_cs;
sbin/growfs/growfs.c
1097
(size_t)sblock.fs_cgsize, (void *)&acg, fso, Nflag);
sbin/growfs/growfs.c
1132
if (isclr(cg_blksfree(&acg), d)) {
sbin/growfs/growfs.c
1141
clrbit(cg_blksfree(&acg), d);
sbin/growfs/growfs.c
1142
acg.cg_cs.cs_nffree--;
sbin/growfs/growfs.c
1159
if (!isblock(&sblock, cg_blksfree(&acg), d / sblock.fs_frag)) {
sbin/growfs/growfs.c
1162
acg.cg_cs.cs_nffree--;
sbin/growfs/growfs.c
1166
clrblock(&sblock, cg_blksfree(&acg), d / sblock.fs_frag);
sbin/growfs/growfs.c
1170
clrblock(&sblock, cg_blksfree(&acg), d / sblock.fs_frag);
sbin/growfs/growfs.c
1171
acg.cg_cs.cs_nbfree--;
sbin/growfs/growfs.c
1174
clrbit(cg_clustersfree(&acg), d / sblock.fs_frag);
sbin/growfs/growfs.c
1178
if (isclr(cg_clustersfree(&acg), l))
sbin/growfs/growfs.c
1182
cg_clustersum(&acg)[lcs + 1]--;
sbin/growfs/growfs.c
1184
cg_clustersum(&acg)[lcs]++;
sbin/growfs/growfs.c
1200
if (isblock(&sblock, cg_blksfree(&acg), d / sblock.fs_frag)) {
sbin/growfs/growfs.c
1201
acg.cg_cs.cs_nbfree--;
sbin/growfs/growfs.c
1203
acg.cg_cs.cs_nffree+=sblock.fs_frag;
sbin/growfs/growfs.c
1206
clrbit(cg_clustersfree(&acg), d / sblock.fs_frag);
sbin/growfs/growfs.c
1210
if (isclr(cg_clustersfree(&acg), l))
sbin/growfs/growfs.c
1214
cg_clustersum(&acg)[lcs + 1]--;
sbin/growfs/growfs.c
1216
cg_clustersum(&acg)[lcs]++;
sbin/growfs/growfs.c
1222
if (isclr(cg_blksfree(&acg), d)) {
sbin/growfs/growfs.c
1226
clrbit(cg_blksfree(&acg), d);
sbin/growfs/growfs.c
1227
acg.cg_cs.cs_nffree--;
sbin/growfs/growfs.c
1264
setbit(cg_blksfree(&acg), g);
sbin/growfs/growfs.c
1265
acg.cg_cs.cs_nffree++;
sbin/growfs/growfs.c
1283
setbit(cg_blksfree(&acg), g);
sbin/growfs/growfs.c
1284
acg.cg_cs.cs_nffree++;
sbin/growfs/growfs.c
1301
if (isclr(cg_blksfree(&acg), f)) {
sbin/growfs/growfs.c
1302
setbit(cg_blksfree(&acg), f);
sbin/growfs/growfs.c
1303
acg.cg_cs.cs_nffree++;
sbin/growfs/growfs.c
1364
*cs = acg.cg_cs;
sbin/growfs/growfs.c
1370
(void *)&acg, fso, Nflag);
sbin/growfs/growfs.c
1425
if (acg.cg_magic != CG_MAGIC) {
sbin/growfs/growfs.c
1429
if (acg.cg_cs.cs_nbfree == 0) {
sbin/growfs/growfs.c
1440
dlower = cgsblock(&sblock, acg.cg_cgx) - cgbase(&sblock, acg.cg_cgx);
sbin/growfs/growfs.c
1441
dupper = cgdmin(&sblock, acg.cg_cgx) - cgbase(&sblock, acg.cg_cgx);
sbin/growfs/growfs.c
1442
dmax = cgbase(&sblock, acg.cg_cgx) + sblock.fs_fpg;
sbin/growfs/growfs.c
1446
dmax -= cgbase(&sblock, acg.cg_cgx); /* retransform into cg */
sbin/growfs/growfs.c
1447
csmin=sblock.fs_csaddr-cgbase(&sblock, acg.cg_cgx);
sbin/growfs/growfs.c
1454
if (isblock(&sblock, cg_blksfree(&acg), fragstoblks(&sblock,
sbin/growfs/growfs.c
1464
if (isblock(&sblock, cg_blksfree(&acg), fragstoblks(&sblock,
sbin/growfs/growfs.c
1480
clrblock(&sblock, cg_blksfree(&acg), blkno);
sbin/growfs/growfs.c
1485
clrbit(cg_clustersfree(&acg), blkno);
sbin/growfs/growfs.c
1495
if (isclr(cg_clustersfree(&acg), l))
sbin/growfs/growfs.c
1504
if (isclr(cg_clustersfree(&acg), l))
sbin/growfs/growfs.c
1511
cg_clustersum(&acg)[MINIMUM(lcs1 + lcs2 + 1, sblock.fs_contigsumsize)]--;
sbin/growfs/growfs.c
1513
cg_clustersum(&acg)[lcs1]++;
sbin/growfs/growfs.c
1515
cg_clustersum(&acg)[lcs2]++;
sbin/growfs/growfs.c
1520
acg.cg_cs.cs_nbfree--;
sbin/growfs/growfs.c
2028
setbit(cg_clustersfree(&acg), block);
sbin/growfs/growfs.c
2038
if (isclr(cg_clustersfree(&acg), block))
sbin/growfs/growfs.c
2044
cg_clustersum(&acg)[lcs]--;
sbin/growfs/growfs.c
2046
cg_clustersum(&acg)[lcs]++;
sbin/growfs/growfs.c
355
memset(&acg, 0, sblock.fs_cgsize);
sbin/growfs/growfs.c
356
acg.cg_ffs2_time = utime;
sbin/growfs/growfs.c
357
acg.cg_magic = CG_MAGIC;
sbin/growfs/growfs.c
358
acg.cg_cgx = cg;
sbin/growfs/growfs.c
359
acg.cg_ffs2_niblk = sblock.fs_ipg;
sbin/growfs/growfs.c
360
acg.cg_initediblk = MINIMUM(sblock.fs_ipg, 2 * INOPB(&sblock));
sbin/growfs/growfs.c
361
acg.cg_ndblk = dmax - cbase;
sbin/growfs/growfs.c
363
acg.cg_nclusterblks = acg.cg_ndblk / sblock.fs_frag;
sbin/growfs/growfs.c
366
acg.cg_iusedoff = start;
sbin/growfs/growfs.c
369
acg.cg_ncyl = sblock.fs_ncyl % sblock.fs_cpg;
sbin/growfs/growfs.c
371
acg.cg_ncyl = sblock.fs_cpg;
sbin/growfs/growfs.c
372
acg.cg_time = (int32_t)acg.cg_ffs2_time;
sbin/growfs/growfs.c
373
acg.cg_ffs2_time = 0;
sbin/growfs/growfs.c
374
acg.cg_niblk = (int16_t)acg.cg_ffs2_niblk;
sbin/growfs/growfs.c
375
acg.cg_ffs2_niblk = 0;
sbin/growfs/growfs.c
376
acg.cg_initediblk = 0;
sbin/growfs/growfs.c
377
acg.cg_btotoff = start;
sbin/growfs/growfs.c
378
acg.cg_boff = acg.cg_btotoff +
sbin/growfs/growfs.c
380
acg.cg_iusedoff = acg.cg_boff +
sbin/growfs/growfs.c
383
acg.cg_freeoff = acg.cg_iusedoff + howmany(sblock.fs_ipg, CHAR_BIT);
sbin/growfs/growfs.c
384
acg.cg_nextfreeoff = acg.cg_freeoff + howmany(sblock.fs_fpg, CHAR_BIT);
sbin/growfs/growfs.c
386
acg.cg_clustersumoff =
sbin/growfs/growfs.c
387
roundup(acg.cg_nextfreeoff, sizeof(u_int32_t));
sbin/growfs/growfs.c
388
acg.cg_clustersumoff -= sizeof(u_int32_t);
sbin/growfs/growfs.c
389
acg.cg_clusteroff = acg.cg_clustersumoff +
sbin/growfs/growfs.c
391
acg.cg_nextfreeoff = acg.cg_clusteroff +
sbin/growfs/growfs.c
394
if (acg.cg_nextfreeoff > sblock.fs_cgsize) {
sbin/growfs/growfs.c
401
acg.cg_cs.cs_nifree += sblock.fs_ipg;
sbin/growfs/growfs.c
404
setbit(cg_inosused(&acg), i);
sbin/growfs/growfs.c
405
acg.cg_cs.cs_nifree--;
sbin/growfs/growfs.c
415
setblock(&sblock, cg_blksfree(&acg), blkno);
sbin/growfs/growfs.c
417
setbit(cg_clustersfree(&acg), blkno);
sbin/growfs/growfs.c
418
acg.cg_cs.cs_nbfree++;
sbin/growfs/growfs.c
422
sblock.fs_dsize += acg.cg_ndblk - dupper;
sbin/growfs/growfs.c
424
acg.cg_frsum[sblock.fs_frag - i]++;
sbin/growfs/growfs.c
426
setbit(cg_blksfree(&acg), dupper);
sbin/growfs/growfs.c
427
acg.cg_cs.cs_nffree++;
sbin/growfs/growfs.c
430
for (d = dupper; d + sblock.fs_frag <= acg.cg_ndblk;
sbin/growfs/growfs.c
433
setblock(&sblock, cg_blksfree(&acg), blkno);
sbin/growfs/growfs.c
435
setbit(cg_clustersfree(&acg), blkno);
sbin/growfs/growfs.c
436
acg.cg_cs.cs_nbfree++;
sbin/growfs/growfs.c
438
if (d < acg.cg_ndblk) {
sbin/growfs/growfs.c
439
acg.cg_frsum[acg.cg_ndblk - d]++;
sbin/growfs/growfs.c
440
for (; d < acg.cg_ndblk; d++) {
sbin/growfs/growfs.c
441
setbit(cg_blksfree(&acg), d);
sbin/growfs/growfs.c
442
acg.cg_cs.cs_nffree++;
sbin/growfs/growfs.c
446
int32_t *sump = cg_clustersum(&acg);
sbin/growfs/growfs.c
447
u_char *mapp = cg_clustersfree(&acg);
sbin/growfs/growfs.c
452
for (i = 0; i < acg.cg_nclusterblks; i++) {
sbin/growfs/growfs.c
474
sblock.fs_cstotal.cs_ndir += acg.cg_cs.cs_ndir;
sbin/growfs/growfs.c
475
sblock.fs_cstotal.cs_nffree += acg.cg_cs.cs_nffree;
sbin/growfs/growfs.c
476
sblock.fs_cstotal.cs_nbfree += acg.cg_cs.cs_nbfree;
sbin/growfs/growfs.c
477
sblock.fs_cstotal.cs_nifree += acg.cg_cs.cs_nifree;
sbin/growfs/growfs.c
478
*cs = acg.cg_cs;
sbin/growfs/growfs.c
486
bcopy(&acg, &iobuf[start], sblock.fs_cgsize);
sbin/growfs/growfs.c
540
if (isset(cg_blksfree(&acg), f)) {
sbin/growfs/growfs.c
547
acg.cg_frsum[fragsize] += sign;
sbin/growfs/growfs.c
556
acg.cg_frsum[fragsize] += sign;
sbin/growfs/growfs.c
649
acg.cg_ncyl = sblock.fs_cpg;
sbin/growfs/growfs.c
652
(size_t)sblock.fs_cgsize, (void *)&acg, fso, Nflag);
sbin/growfs/growfs.c
677
acg.cg_time = utime;
sbin/growfs/growfs.c
683
acg.cg_ncyl = sblock.fs_ncyl % sblock.fs_cpg;
sbin/growfs/growfs.c
685
acg.cg_ncyl = sblock.fs_cpg;
sbin/growfs/growfs.c
688
acg.cg_ndblk = dmax - cbase;
sbin/growfs/growfs.c
689
sblock.fs_dsize += acg.cg_ndblk-aocg.cg_ndblk;
sbin/growfs/growfs.c
691
acg.cg_nclusterblks = acg.cg_ndblk / sblock.fs_frag;
sbin/growfs/growfs.c
714
setbit(cg_blksfree(&acg), i);
sbin/growfs/growfs.c
715
acg.cg_cs.cs_nffree++;
sbin/growfs/growfs.c
724
if (isblock(&sblock, cg_blksfree(&acg),
sbin/growfs/growfs.c
730
acg.cg_frsum[osblock.fs_size%sblock.fs_frag]--;
sbin/growfs/growfs.c
731
acg.cg_cs.cs_nbfree++;
sbin/growfs/growfs.c
732
acg.cg_cs.cs_nffree-=sblock.fs_frag;
sbin/growfs/growfs.c
742
while (isset(cg_blksfree(&acg), i) &&
sbin/growfs/growfs.c
749
acg.cg_frsum[k]--;
sbin/growfs/growfs.c
750
acg.cg_frsum[k + j]++;
sbin/growfs/growfs.c
759
setbit(cg_blksfree(&acg), i);
sbin/growfs/growfs.c
760
acg.cg_cs.cs_nffree++;
sbin/growfs/growfs.c
767
while (isset(cg_blksfree(&acg), i) &&
sbin/growfs/growfs.c
774
acg.cg_frsum[k]--;
sbin/growfs/growfs.c
775
acg.cg_frsum[k + j]++;
sbin/growfs/growfs.c
786
setblock(&sblock, cg_blksfree(&acg), j);
sbin/growfs/growfs.c
788
acg.cg_cs.cs_nbfree++;
sbin/growfs/growfs.c
797
acg.cg_frsum[dmax - cbase - i]++;
sbin/growfs/growfs.c
799
setbit(cg_blksfree(&acg), i);
sbin/growfs/growfs.c
800
acg.cg_cs.cs_nffree++;
sbin/growfs/growfs.c
805
(acg.cg_cs.cs_nffree - aocg.cg_cs.cs_nffree);
sbin/growfs/growfs.c
807
(acg.cg_cs.cs_nbfree - aocg.cg_cs.cs_nbfree);
sbin/growfs/growfs.c
815
*cs = acg.cg_cs;
sbin/growfs/growfs.c
821
(void *)&acg, fso, Nflag);
sbin/growfs/growfs.c
881
acg.cg_time = utime;
sbin/growfs/growfs.c
927
if (isclr(cg_clustersfree(&acg), block))
sbin/growfs/growfs.c
944
setbit(cg_blksfree(&acg), d % sblock.fs_fpg);
sbin/growfs/growfs.c
945
acg.cg_cs.cs_nffree++;
sbin/growfs/growfs.c
955
if (isblock(&sblock, cg_blksfree(&acg),
sbin/growfs/growfs.c
957
acg.cg_cs.cs_nffree -= sblock.fs_frag;
sbin/growfs/growfs.c
958
acg.cg_cs.cs_nbfree++;
sbin/growfs/growfs.c
962
setbit(cg_clustersfree(&acg),
sbin/growfs/growfs.c
966
cg_clustersum(&acg)
sbin/growfs/growfs.c
970
cg_clustersum(&acg)[lcs]++;
sbin/growfs/growfs.c
983
setblock(&sblock, cg_blksfree(&acg),
sbin/growfs/growfs.c
985
acg.cg_cs.cs_nbfree++;
sbin/growfs/growfs.c
988
setbit(cg_clustersfree(&acg),
sbin/growfs/growfs.c
995
cg_clustersum(&acg)[lcs]--;
sbin/growfs/growfs.c
998
cg_clustersum(&acg)[lcs]++;
sbin/newfs/mkfs.c
647
memset(&acg, 0, sblock.fs_cgsize);
sbin/newfs/mkfs.c
648
acg.cg_ffs2_time = utime;
sbin/newfs/mkfs.c
649
acg.cg_magic = CG_MAGIC;
sbin/newfs/mkfs.c
650
acg.cg_cgx = cg;
sbin/newfs/mkfs.c
651
acg.cg_ffs2_niblk = sblock.fs_ipg;
sbin/newfs/mkfs.c
652
acg.cg_initediblk = MINIMUM(sblock.fs_ipg, 2 * INOPB(&sblock));
sbin/newfs/mkfs.c
653
acg.cg_ndblk = dmax - cbase;
sbin/newfs/mkfs.c
659
acg.cg_ncyl = 0;
sbin/newfs/mkfs.c
661
acg.cg_ncyl = sblock.fs_cpg;
sbin/newfs/mkfs.c
662
acg.cg_time = acg.cg_ffs2_time;
sbin/newfs/mkfs.c
663
acg.cg_ffs2_time = 0;
sbin/newfs/mkfs.c
664
acg.cg_niblk = acg.cg_ffs2_niblk;
sbin/newfs/mkfs.c
665
acg.cg_ffs2_niblk = 0;
sbin/newfs/mkfs.c
666
acg.cg_initediblk = 0;
sbin/newfs/mkfs.c
667
acg.cg_btotoff = start;
sbin/newfs/mkfs.c
668
acg.cg_boff = acg.cg_btotoff + sblock.fs_cpg * sizeof(int32_t);
sbin/newfs/mkfs.c
669
acg.cg_iusedoff = acg.cg_boff +
sbin/newfs/mkfs.c
672
acg.cg_iusedoff = start;
sbin/newfs/mkfs.c
675
acg.cg_freeoff = acg.cg_iusedoff + howmany(sblock.fs_ipg, CHAR_BIT);
sbin/newfs/mkfs.c
676
acg.cg_nextfreeoff = acg.cg_freeoff + howmany(sblock.fs_fpg, CHAR_BIT);
sbin/newfs/mkfs.c
677
if (acg.cg_nextfreeoff > sblock.fs_cgsize)
sbin/newfs/mkfs.c
679
acg.cg_nextfreeoff, sblock.fs_cgsize);
sbin/newfs/mkfs.c
680
acg.cg_cs.cs_nifree += sblock.fs_ipg;
sbin/newfs/mkfs.c
683
setbit(cg_inosused(&acg), i);
sbin/newfs/mkfs.c
684
acg.cg_cs.cs_nifree--;
sbin/newfs/mkfs.c
693
setblock(&sblock, cg_blksfree(&acg), blkno);
sbin/newfs/mkfs.c
694
acg.cg_cs.cs_nbfree++;
sbin/newfs/mkfs.c
696
cg_blktot(&acg)[cbtocylno(&sblock, d)]++;
sbin/newfs/mkfs.c
697
cg_blks(&sblock, &acg, cbtocylno(&sblock, d))
sbin/newfs/mkfs.c
703
acg.cg_frsum[sblock.fs_frag - i]++;
sbin/newfs/mkfs.c
705
setbit(cg_blksfree(&acg), dupper);
sbin/newfs/mkfs.c
706
acg.cg_cs.cs_nffree++;
sbin/newfs/mkfs.c
710
d + sblock.fs_frag <= acg.cg_ndblk;
sbin/newfs/mkfs.c
713
setblock(&sblock, cg_blksfree(&acg), blkno);
sbin/newfs/mkfs.c
714
acg.cg_cs.cs_nbfree++;
sbin/newfs/mkfs.c
716
cg_blktot(&acg)[cbtocylno(&sblock, d)]++;
sbin/newfs/mkfs.c
717
cg_blks(&sblock, &acg, cbtocylno(&sblock, d))
sbin/newfs/mkfs.c
721
if (d < acg.cg_ndblk) {
sbin/newfs/mkfs.c
722
acg.cg_frsum[acg.cg_ndblk - d]++;
sbin/newfs/mkfs.c
723
for (; d < acg.cg_ndblk; d++) {
sbin/newfs/mkfs.c
724
setbit(cg_blksfree(&acg), d);
sbin/newfs/mkfs.c
725
acg.cg_cs.cs_nffree++;
sbin/newfs/mkfs.c
728
*cs = acg.cg_cs;
sbin/newfs/mkfs.c
736
if (cg == 0 && acg.cg_cs.cs_nbfree == 0)
sbin/newfs/mkfs.c
739
bcopy((char *)&acg, &iobuf[start], sblock.fs_cgsize);
sbin/newfs/mkfs.c
924
(char *)&acg);
sbin/newfs/mkfs.c
925
if (acg.cg_magic != CG_MAGIC) {
sbin/newfs/mkfs.c
929
if (acg.cg_cs.cs_nbfree == 0) {
sbin/newfs/mkfs.c
933
for (d = 0; d < acg.cg_ndblk; d += sblock.fs_frag)
sbin/newfs/mkfs.c
934
if (isblock(&sblock, cg_blksfree(&acg), d / sblock.fs_frag))
sbin/newfs/mkfs.c
940
clrblock(&sblock, cg_blksfree(&acg), blkno);
sbin/newfs/mkfs.c
941
acg.cg_cs.cs_nbfree--;
sbin/newfs/mkfs.c
945
acg.cg_cs.cs_ndir++;
sbin/newfs/mkfs.c
950
cg_blktot(&acg)[cbtocylno(&sblock, d)]--;
sbin/newfs/mkfs.c
951
cg_blks(&sblock, &acg, cbtocylno(&sblock, d))
sbin/newfs/mkfs.c
958
acg.cg_cs.cs_nffree += sblock.fs_frag - frag;
sbin/newfs/mkfs.c
959
acg.cg_frsum[sblock.fs_frag - frag]++;
sbin/newfs/mkfs.c
961
setbit(cg_blksfree(&acg), d + i);
sbin/newfs/mkfs.c
964
(char *)&acg);
sbin/newfs/mkfs.c
982
(char *)&acg);
sbin/newfs/mkfs.c
983
if (acg.cg_magic != CG_MAGIC)
sbin/newfs/mkfs.c
986
acg.cg_cs.cs_nifree--;
sbin/newfs/mkfs.c
987
setbit(cg_inosused(&acg), ino);
sbin/newfs/mkfs.c
990
(char *)&acg);
usr.sbin/makefs/ffs/mkfs.c
583
memset(&acg, 0, sblock.fs_cgsize);
usr.sbin/makefs/ffs/mkfs.c
584
acg.cg_ffs2_time = utime;
usr.sbin/makefs/ffs/mkfs.c
585
acg.cg_magic = CG_MAGIC;
usr.sbin/makefs/ffs/mkfs.c
586
acg.cg_cgx = cylno;
usr.sbin/makefs/ffs/mkfs.c
587
acg.cg_ffs2_niblk = sblock.fs_ipg;
usr.sbin/makefs/ffs/mkfs.c
588
acg.cg_initediblk = sblock.fs_ipg < 2 * INOPB(&sblock) ?
usr.sbin/makefs/ffs/mkfs.c
590
acg.cg_ndblk = dmax - cbase;
usr.sbin/makefs/ffs/mkfs.c
592
acg.cg_nclusterblks = acg.cg_ndblk >> sblock.fs_fragshift;
usr.sbin/makefs/ffs/mkfs.c
595
acg.cg_iusedoff = start;
usr.sbin/makefs/ffs/mkfs.c
598
acg.cg_ncyl = howmany(acg.cg_ndblk,
usr.sbin/makefs/ffs/mkfs.c
601
acg.cg_ncyl = sblock.fs_cpg;
usr.sbin/makefs/ffs/mkfs.c
602
acg.cg_time = acg.cg_ffs2_time;
usr.sbin/makefs/ffs/mkfs.c
603
acg.cg_ffs2_time = 0;
usr.sbin/makefs/ffs/mkfs.c
604
acg.cg_niblk = acg.cg_ffs2_niblk;
usr.sbin/makefs/ffs/mkfs.c
605
acg.cg_ffs2_niblk = 0;
usr.sbin/makefs/ffs/mkfs.c
606
acg.cg_initediblk = 0;
usr.sbin/makefs/ffs/mkfs.c
607
acg.cg_btotoff = start;
usr.sbin/makefs/ffs/mkfs.c
608
acg.cg_boff = acg.cg_btotoff + sblock.fs_cpg * sizeof(int32_t);
usr.sbin/makefs/ffs/mkfs.c
609
acg.cg_iusedoff = acg.cg_boff +
usr.sbin/makefs/ffs/mkfs.c
612
acg.cg_freeoff = acg.cg_iusedoff + howmany(sblock.fs_ipg, CHAR_BIT);
usr.sbin/makefs/ffs/mkfs.c
614
acg.cg_nextfreeoff = acg.cg_freeoff +
usr.sbin/makefs/ffs/mkfs.c
617
acg.cg_clustersumoff = acg.cg_freeoff +
usr.sbin/makefs/ffs/mkfs.c
619
acg.cg_clustersumoff =
usr.sbin/makefs/ffs/mkfs.c
620
roundup(acg.cg_clustersumoff, sizeof(int32_t));
usr.sbin/makefs/ffs/mkfs.c
621
acg.cg_clusteroff = acg.cg_clustersumoff +
usr.sbin/makefs/ffs/mkfs.c
623
acg.cg_nextfreeoff = acg.cg_clusteroff +
usr.sbin/makefs/ffs/mkfs.c
626
if (acg.cg_nextfreeoff > sblock.fs_cgsize) {
usr.sbin/makefs/ffs/mkfs.c
630
acg.cg_cs.cs_nifree += sblock.fs_ipg;
usr.sbin/makefs/ffs/mkfs.c
635
setbit(cg_inosused(&acg), r);
usr.sbin/makefs/ffs/mkfs.c
636
acg.cg_cs.cs_nifree--;
usr.sbin/makefs/ffs/mkfs.c
645
ffs_setblock(&sblock, cg_blksfree(&acg), blkno);
usr.sbin/makefs/ffs/mkfs.c
647
setbit(cg_clustersfree(&acg), blkno);
usr.sbin/makefs/ffs/mkfs.c
648
acg.cg_cs.cs_nbfree++;
usr.sbin/makefs/ffs/mkfs.c
654
acg.cg_frsum[sblock.fs_frag - i]++;
usr.sbin/makefs/ffs/mkfs.c
656
setbit(cg_blksfree(&acg), dupper);
usr.sbin/makefs/ffs/mkfs.c
657
acg.cg_cs.cs_nffree++;
usr.sbin/makefs/ffs/mkfs.c
661
d + sblock.fs_frag <= acg.cg_ndblk; ) {
usr.sbin/makefs/ffs/mkfs.c
662
ffs_setblock(&sblock, cg_blksfree(&acg), blkno);
usr.sbin/makefs/ffs/mkfs.c
664
setbit(cg_clustersfree(&acg), blkno);
usr.sbin/makefs/ffs/mkfs.c
665
acg.cg_cs.cs_nbfree++;
usr.sbin/makefs/ffs/mkfs.c
669
if (d < acg.cg_ndblk) {
usr.sbin/makefs/ffs/mkfs.c
670
acg.cg_frsum[acg.cg_ndblk - d]++;
usr.sbin/makefs/ffs/mkfs.c
671
for (; d < acg.cg_ndblk; d++) {
usr.sbin/makefs/ffs/mkfs.c
672
setbit(cg_blksfree(&acg), d);
usr.sbin/makefs/ffs/mkfs.c
673
acg.cg_cs.cs_nffree++;
usr.sbin/makefs/ffs/mkfs.c
677
int32_t *sump = cg_clustersum(&acg);
usr.sbin/makefs/ffs/mkfs.c
678
u_char *mapp = cg_clustersfree(&acg);
usr.sbin/makefs/ffs/mkfs.c
683
for (i = 0; i < acg.cg_nclusterblks; i++) {
usr.sbin/makefs/ffs/mkfs.c
705
sblock.fs_cs(&sblock, cylno) = acg.cg_cs;
usr.sbin/makefs/ffs/mkfs.c
711
memcpy(&iobuf[start], &acg, sblock.fs_cgsize);
usr.sbin/makefs/ffs/mkfs.c
715
for (i = 0; i < acg.cg_initediblk; i++) {