Searched refs:ncg (Results 1 - 5 of 5) sorted by relevance

/netbsd-6-1-5-RELEASE/sbin/newfs_ext2fs/
H A Dmke2fs.c190 uint ncg, cylno, sboff; local
294 ncg = howmany(bcount - sblock.e2fs.e2fs_first_dblock, blocks_per_cg);
295 blocks_gd = howmany(sizeof(struct ext2_gd) * ncg, bsize);
300 if (num_inodes > UINT16_MAX * ncg)
301 num_inodes = UINT16_MAX * ncg; /* ext2bgd_nifree is uint16_t */
303 inodes_per_cg = num_inodes / ncg;
312 if (Oflag == 0 || cg_has_sb(ncg - 1) != 0)
316 blocks_per_cg * (ncg - 1);
327 ncg--;
329 blocks_gd = howmany(sizeof(struct ext2_gd) * ncg, bsiz
[all...]
/netbsd-6-1-5-RELEASE/sbin/newfs/
H A Dmkfs.c179 uint fragsperinodeblk, ncg, u; local
399 ncg = howmany(cgall - cgzero, sblock.fs_bsize - cgzero);
400 if (ncg < MINCYLGRPS) {
408 if (u > ncg)
409 ncg = u;
410 if (ncg > MINCYLGRPS)
411 ncg = MINCYLGRPS;
412 if (ncg > inodeblks)
413 ncg = inodeblks;
421 sblock.fs_fpg = roundup(howmany(sblock.fs_size, ncg), sbloc
[all...]
/netbsd-6-1-5-RELEASE/sbin/fsck_ffs/
H A Dpass5.c74 struct cg *cg = cgrp, *ncg; local
113 ncg = realloc(cgrp, ncgsize);
114 if (ncg == NULL)
117 cg = cgrp = ncg;
/netbsd-6-1-5-RELEASE/usr.sbin/makefs/
H A Dffs.c324 int32_t ncg = 1; local
393 fsopts->size += (SBLOCK_UFS1 + SBLOCKSIZE) * ncg;
396 fsopts->size += ncg * DINODE1_SIZE *
397 roundup(fsopts->inodes / ncg,
400 fsopts->size += ncg * DINODE2_SIZE *
401 roundup(fsopts->inodes / ncg,
/netbsd-6-1-5-RELEASE/sbin/resize_ffs/
H A Dresize_ffs.c1022 int ncg, void *cbarg) {
1026 ni = oldsb->fs_ipg * ncg;
1175 map_data_blocks(mark_callback_t fn, int ncg) argument
1177 map_inodes(&dblk_callback, ncg, (void *) fn);
1021 map_inodes(void (*fn) (union dinode * di, unsigned int, void *arg), int ncg, void *cbarg) argument

Completed in 124 milliseconds