Home
last modified time | relevance | path

Searched refs:e2fs_ncg (Results 1 – 9 of 9) sorted by relevance

/openbsd/src/sys/ufs/ext2fs/
Dext2fs_alloc.c195 avgifree = fs->e2fs.e2fs_ficount / fs->e2fs_ncg; in ext2fs_dirpref()
198 for (cg = 0; cg < fs->e2fs_ncg; cg++) in ext2fs_dirpref()
280 for (i = 1; i < fs->e2fs_ncg; i *= 2) { in ext2fs_hashalloc()
282 if (cg >= fs->e2fs_ncg) in ext2fs_hashalloc()
283 cg -= fs->e2fs_ncg; in ext2fs_hashalloc()
293 cg = (icg + 2) % fs->e2fs_ncg; in ext2fs_hashalloc()
294 for (i = 2; i < fs->e2fs_ncg; i++) { in ext2fs_hashalloc()
299 if (cg == fs->e2fs_ncg) in ext2fs_hashalloc()
Dext2fs_vfsops.c358 fs->e2fs_ncg = howmany(fs->e2fs.e2fs_bcount - fs->e2fs.e2fs_first_dblock, in e2fs_sbfill()
372 fs->e2fs_ngdb = howmany(fs->e2fs_ncg, in e2fs_sbfill()
670 fs->e2fs_ncg * overhead_per_group; in ext2fs_statfs()
673 for (i = 0, ngroups = 0; i < fs->e2fs_ncg; i++) { in ext2fs_statfs()
678 ngroups = fs->e2fs_ncg; in ext2fs_statfs()
980 ufhp->ufid_ino > fs->e2fs_ncg * fs->e2fs.e2fs_ipg) in ext2fs_fhtovp()
Dext2fs.h216 int32_t e2fs_ncg; /* number of cylinder groups */ member
/openbsd/src/sbin/fsck_ext2fs/
Dsetup.c143 for (cg = 1; cg < proto.e2fs_ncg; cg++) { in setup()
149 if (cg >= proto.e2fs_ncg) { in setup()
174 maxino = sblock.e2fs_ncg * sblock.e2fs.e2fs_ipg; in setup()
250 for (numdirs = 0, cg = 0; cg < sblock.e2fs_ncg; cg++) { in setup()
301 sblock.e2fs_ncg = in readsb()
310 sblock.e2fs_ngdb = howmany(sblock.e2fs_ncg, in readsb()
322 if (sblock.e2fs_ncg == 1) { in readsb()
489 fs->e2fs_ncg = in calcsb()
493 fs->e2fs_ngdb = howmany(fs->e2fs_ncg, in calcsb()
Dpass1b.c58 for (c = 0; c < sblock.e2fs_ncg; c++) { in pass1b()
Dpass1.c66 for (c = 0; c < sblock.e2fs_ncg; c++) { in pass1()
109 for (c = 0; c < sblock.e2fs_ncg; c++) { in pass1()
Dmain.c276 for (i = 0; i < sblock.e2fs_ncg; i++) in checkfilesys()
Dpass5.c74 for (c = 0; c < fs->e2fs_ncg; c++) { in pass5()
/openbsd/src/sbin/newfs_ext2fs/
Dmke2fs.c337 sblock.e2fs_ncg = ncg; in mke2fs()
619 delta = sblock.e2fs_ncg - cylno - 1; in mke2fs()
657 sizeof(struct ext2_gd) * sblock.e2fs_ncg); in mke2fs()
689 sizeof(struct ext2_gd) * sblock.e2fs_ncg); in initcg()
699 if (cylno == (sblock.e2fs_ncg - 1)) { in initcg()
702 cgbase(&sblock, sblock.e2fs_ncg - 1); in initcg()
1181 for (n = 0, cylno = 1; cylno < sblock.e2fs_ncg; cylno++) { in init_resizeino()
1335 if (ino >= sblock.e2fs.e2fs_ipg * sblock.e2fs_ncg) in iput()