Home
last modified time | relevance | path

Searched refs:FFS_INOPB (Results 1 – 10 of 10) sorted by relevance

/netbsd/src/usr.sbin/makefs/ffs/
Dmkfs.c346 minfpg = fragsperinode * FFS_INOPB(&sblock); in ffs_mkfs()
349 sblock.fs_ipg = FFS_INOPB(&sblock); in ffs_mkfs()
355 FFS_INOPB(&sblock)); in ffs_mkfs()
361 FFS_INOPB(&sblock)); in ffs_mkfs()
378 FFS_INOPB(&sblock)); in ffs_mkfs()
387 FFS_INOPB(&sblock)); in ffs_mkfs()
411 FFS_INOPB(&sblock)); in ffs_mkfs()
637 acg.cg_initediblk = sblock.fs_ipg < 2 * FFS_INOPB(&sblock) ? in initcg()
638 sblock.fs_ipg : 2 * FFS_INOPB(&sblock); in initcg()
787 for (j = 0; j < FFS_INOPB(&sblock); j++) { in initcg()
/netbsd/src/sbin/dump/
Dffs_inode.c241 minino = inum - (inum % FFS_INOPB(sblock)); in getino()
242 maxino = minino + FFS_INOPB(sblock); in getino()
/netbsd/src/sbin/newfs/
Dmkfs.c384 inodeblks = howmany(num_inodes, FFS_INOPB(&sblock)); in mkfs()
391 (uint64_t)density * FFS_INOPB(&sblock)), 1); in mkfs()
401 if (inodeblks * FFS_INOPB(&sblock) >= 1ull << 31) in mkfs()
402 inodeblks = ((1ull << 31) - NBBY) / FFS_INOPB(&sblock); in mkfs()
408 cgall = CGSIZE_IF(&sblock, inodeblks * FFS_INOPB(&sblock), sblock.fs_size); in mkfs()
434 inodes_per_cg = ((inodeblks - 1) / ncg + 1) * FFS_INOPB(&sblock); in mkfs()
441 inodes_per_cg = ((inodeblks - 1) / ncg + 1) * FFS_INOPB(&sblock); in mkfs()
815 acg.cg_initediblk = sblock.fs_ipg < 2 * FFS_INOPB(&sblock) ? in initcg()
816 sblock.fs_ipg : 2 * FFS_INOPB(&sblock); in initcg()
962 for (i = MIN(sblock.fs_ipg, 2) * FFS_INOPB(&sblock); i != 0; i--) { in initcg()
/netbsd/src/sbin/fsck_ffs/
Dinode.c332 inumber < startinum || inumber >= startinum + FFS_INOPB(sblock)) { in ginode()
337 startinum = (inumber / FFS_INOPB(sblock)) * FFS_INOPB(sblock); in ginode()
340 blkoff = (inumber % FFS_INOPB(sblock)) * DINODE2_SIZE; in ginode()
343 blkoff = (inumber % FFS_INOPB(sblock)) * DINODE1_SIZE; in ginode()
/netbsd/src/sys/ufs/ffs/
Dfs.h653 (ffs_blkstofrags((fs), ((((ino_t)(x)) % (fs)->fs_ipg) / FFS_INOPB(fs))))))
654 #define ino_to_fsbo(fs, x) (((ino_t)(x)) % FFS_INOPB(fs))
741 #define FFS_INOPB(fs) ((fs)->fs_inopb) macro
Dffs_alloc.c1312 if (nalloc + FFS_INOPB(fs) > initediblk && in ffs_nodealloccg()
1327 maxiblk += FFS_INOPB(fs); in ffs_nodealloccg()
1391 for (i = 0; i < FFS_INOPB(fs); i++) { in ffs_nodealloccg()
1399 initediblk += FFS_INOPB(fs); in ffs_nodealloccg()
/netbsd/src/sbin/fsirand/
Dfsirand.c135 int inopb = FFS_INOPB(fs); in fixinodes()
/netbsd/src/sbin/fsdb/
Dfsdb.c671 (inum / FFS_INOPB(sblock)) * FFS_INOPB(sblock), in CMDFUNC()
673 (inum / FFS_INOPB(sblock) + 1) * FFS_INOPB(sblock)); in CMDFUNC()
/netbsd/src/sbin/resize_ffs/
Dresize_ffs.c499 cg->cg_initediblk = newsb->fs_ipg < 2 * FFS_INOPB(newsb) ? in initcg()
500 newsb->fs_ipg : 2 * FFS_INOPB(newsb); in initcg()
1585 m = FFS_INOPB(newsb) - 1; in flush_inodes()
2270 if (oldsb->fs_ipg % FFS_INOPB(oldsb)) in main()
2272 (int) oldsb->fs_ipg, (int) FFS_INOPB(oldsb)); in main()
/netbsd/src/usr.sbin/makefs/
Dffs.c1120 (uint32_t)(cgino + FFS_INOPB(fs)) > initediblk && in ffs_write_inode()
1124 for (i = 0; i < FFS_INOPB(fs); i++) { in ffs_write_inode()
1131 initediblk += FFS_INOPB(fs); in ffs_write_inode()