/src/usr.sbin/makefs/ffs/ |
mkfs.c | 349 sblock.fs_ipg = FFS_INOPB(&sblock); 351 sblock.fs_ipg / FFS_INOPF(&sblock), sblock.fs_frag); 354 sblock.fs_ipg = roundup(howmany(sblock.fs_fpg, fragsperinode), 357 sblock.fs_ipg / FFS_INOPF(&sblock), sblock.fs_frag); 360 sblock.fs_ipg = roundup(howmany(sblock.fs_fpg, fragsperinode), 377 sblock.fs_ipg = roundup(howmany(sblock.fs_fpg, fragsperinode), 386 sblock.fs_ipg = roundup(howmany(sblock.fs_fpg, fragsperinode), 400 sblock.fs_ipg / FFS_INOPF(&sblock), sblock.fs_frag); 410 sblock.fs_ipg = roundup(howmany(sblock.fs_fpg, fragsperinode), 417 sblock.fs_dblkno = sblock.fs_iblkno + sblock.fs_ipg / FFS_INOPF(&sblock) [all...] |
/src/sbin/fsck_ffs/ |
pass5.c | 84 newcg->cg_niblk = fs->fs_ipg; 148 inomapsize = howmany(fs->fs_ipg, CHAR_BIT); 288 newcg->cg_old_niblk = fs->fs_ipg; 296 newcg->cg_cs.cs_nifree = fs->fs_ipg; 305 if (cg->cg_irotor < fs->fs_ipg) 312 if ((unsigned)cg->cg_initediblk > (unsigned)fs->fs_ipg) 313 newcg->cg_initediblk = fs->fs_ipg; 323 inum = fs->fs_ipg * c; 324 for (i = 0; i < fs->fs_ipg; inum++, i++) { 458 c * fs->fs_ipg + i * 8 + k) [all...] |
pass1b.c | 80 for (i = 0; i < sblock->fs_ipg; i++, inumber++) {
|
pass1.c | 101 inumber = c * sblock->fs_ipg; 110 inosused = sblock->fs_ipg; 181 if (inosused < (ino_t)sblock->fs_ipg || inumber == lastino) 189 if (lastino < (c * (ino_t)sblock->fs_ipg)) 192 ninosused = lastino - (c * sblock->fs_ipg);
|
inode.c | 443 if (inum % sblock->fs_ipg != 0) 447 lastvalidinum = inum + sblock->fs_ipg - 1; 456 readpercg = sblock->fs_ipg / fullcnt; 457 partialcnt = sblock->fs_ipg % fullcnt; 734 if ((ino % sblock->fs_ipg) >= inostathead[cg].il_numalloced) { 736 newalloced = MIN(sblock->fs_ipg, 763 setbit(cg_inosused(cgp, 0), ino % sblock->fs_ipg); 863 clrbit(cg_inosused(cgp, 0), ino % sblock->fs_ipg);
|
pass4.c | 85 inumber = cg * sblock->fs_ipg;
|
setup.c | 232 maxino = sblock->fs_ncg * sblock->fs_ipg; 947 asb->fs_ipg != sb->fs_ipg ||
|
utilities.c | 598 ilp = &inostathead[inum / sblock->fs_ipg]; 599 iloff = inum % sblock->fs_ipg;
|
/src/sys/arch/hppa/stand/xxboot/ |
readufs_ffs.c | 104 fsi_ffs.ipg = buf.sblk.fs_ipg; 111 #define fs_ipg fs_u.u_ffs.ipg macro
|
/src/sys/arch/x68k/stand/boot_ufs/ |
readufs_ffs.c | 105 fsi_ffs.ipg = buf.sblk.fs_ipg; 112 #define fs_ipg fs_u.u_ffs.ipg macro
|
/src/sbin/resize_ffs/ |
resize_ffs.c | 494 cg->cg_niblk = newsb->fs_ipg; 499 cg->cg_initediblk = newsb->fs_ipg < 2 * FFS_INOPB(newsb) ? 500 newsb->fs_ipg : 2 * FFS_INOPB(newsb); 529 cg->cg_freeoff = cg->cg_iusedoff + howmany(newsb->fs_ipg, NBBY); 556 cg->cg_cs.cs_nifree = newsb->fs_ipg; 629 newsb->fs_ipg * sizeof(*zinodes1)); 763 cgn = hand / newsb->fs_ipg; 764 iwc = hand % newsb->fs_ipg; 772 if (iwc >= newsb->fs_ipg) { 1006 zinodes2 = alloconce(newsb->fs_ipg * sizeof(*zinodes2) [all...] |
/src/sbin/dump/ |
ffs_inode.c | 166 return sblock->fs_ipg * sblock->fs_ncg; 181 ino = cg * sblock->fs_ipg; 189 inosused = sblock->fs_ipg;
|
/src/sys/ufs/ffs/ |
ffs_alloc.c | 596 if (ipref >= fs->fs_ncg * fs->fs_ipg) 663 minndir = fs->fs_ipg; 678 return ((ino_t)(fs->fs_ipg * mincg)); 688 maxndir = uimin(avgndir + fs->fs_ipg / 16, fs->fs_ipg); 708 fs->fs_ipg / fs->fs_avgfpdir); 723 return ((ino_t)(fs->fs_ipg * cg)); 730 return ((ino_t)(fs->fs_ipg * cg)); 737 return ((ino_t)(fs->fs_ipg * cg)); 741 return ((ino_t)(fs->fs_ipg * cg)) [all...] |
fs.h | 311 u_int32_t fs_ipg; /* inodes per group */ member in struct:fs 489 #define CGSIZE(fs) CGSIZE_IF((fs), (fs)->fs_ipg, (fs)->fs_fpg) 650 #define ino_to_cg(fs, x) (((ino_t)(x)) / (fs)->fs_ipg) 653 (ffs_blkstofrags((fs), ((((ino_t)(x)) % (fs)->fs_ipg) / FFS_INOPB(fs))))))
|
ffs_vfsops.c | 197 if (ino < UFS_ROOTINO || ino >= fs->fs_ncg * fs->fs_ipg) { 234 if (cg * fs->fs_ipg + initediblk < ino) { 235 DPRINTF("cg=%d fs->fs_ipg=%d initediblk=%d ino=%" PRIu64 "\n", 236 cg, fs->fs_ipg, initediblk, ino); 1061 if (fs->fs_ipg == 0) 1920 sbp->f_files = fs->fs_ncg * fs->fs_ipg - UFS_ROOTINO;
|
/src/sbin/newfs/ |
mkfs.c | 400 /* Even UFS2 limits number of inodes to 2^31 (fs_ipg is int32_t) */ 443 sblock.fs_ipg = inodes_per_cg; 451 sblock.fs_dblkno = sblock.fs_iblkno + sblock.fs_ipg / FFS_INOPF(&sblock); 531 sblock.fs_cstotal.cs_nifree = sblock.fs_ncg * sblock.fs_ipg - UFS_ROOTINO; 564 sblock.fs_fpg / sblock.fs_frag, sblock.fs_ipg); 814 acg.cg_niblk = sblock.fs_ipg; 815 acg.cg_initediblk = sblock.fs_ipg < 2 * FFS_INOPB(&sblock) ? 816 sblock.fs_ipg : 2 * FFS_INOPB(&sblock); 825 acg.cg_old_niblk = sblock.fs_ipg; 832 acg.cg_freeoff = acg.cg_iusedoff + howmany(sblock.fs_ipg, CHAR_BIT) [all...] |
/src/usr.sbin/quotacheck/ |
quotacheck.c | 418 maxino = sblock.fs_ncg * sblock.fs_ipg; 420 ino = cg * sblock.fs_ipg; 431 inosused = sblock.fs_ipg; 779 if (inum % sblock.fs_ipg != 0) 783 lastvalidinum = inum + sblock.fs_ipg - 1; 791 readpercg = sblock.fs_ipg / fullcnt; 792 partialcnt = sblock.fs_ipg % fullcnt;
|
/src/usr.sbin/dumpfs/ |
dumpfs.c | 366 fs->fs_fpg / fs->fs_frag, fs->fs_fpg, fs->fs_ipg); 595 for (inum = c * afs.fs_ipg ; inum < (c+n) * afs.fs_ipg; inum += afs.fs_inopb) { 667 pbits(0 * c * afs.fs_ipg, cg_inosused(&acg, 0), afs.fs_ipg); 703 if (inum % afs.fs_ipg == 0) 725 if (inum % afs.fs_ipg == 0)
|
/src/usr.sbin/quot/ |
quot.c | 76 #define INOCNT(fs) ((fs)->fs_ipg) 350 maxino = super->fs_ncg * super->fs_ipg - 1; 420 maxino = super->fs_ncg * super->fs_ipg - 1; 460 maxino = super->fs_ncg * super->fs_ipg - 1;
|
/src/sbin/clri/ |
clri.c | 140 ufs_rw32(sbp->fs_ipg, needswap);
|
/src/sbin/fsirand/ |
fsirand.c | 153 for (ino = 0, imax = fs->fs_ipg * fs->fs_ncg; ino < imax;) {
|
/src/sbin/fsdb/ |
fsdb.c | 651 inum = c * sblock->fs_ipg; 659 inosused = sblock->fs_ipg;
|
/src/usr.sbin/makefs/ |
ffs.c | 1080 cgino = ino % fs->fs_ipg; 1129 cg * fs->fs_ipg + initediblk)),
|