/netbsd/usr.sbin/makefs/ffs/ |
H A D | ffs_alloc.c | 169 return (fs->fs_fpg * cg + fs->fs_frag); in ffs_blkpref_ufs1() 185 return (fs->fs_fpg * cg + fs->fs_frag); in ffs_blkpref_ufs1() 188 return (fs->fs_fpg * cg + fs->fs_frag); in ffs_blkpref_ufs1() 208 return (fs->fs_fpg * cg + fs->fs_frag); in ffs_blkpref_ufs2() 224 return (fs->fs_fpg * cg + fs->fs_frag); in ffs_blkpref_ufs2() 228 return (fs->fs_fpg * cg + fs->fs_frag); in ffs_blkpref_ufs2() 335 if (allocsiz == fs->fs_frag) { in ffs_alloccg() 346 for (i = frags; i < fs->fs_frag; i++) in ffs_alloccg() 348 i = fs->fs_frag - frags; in ffs_alloccg() 559 (const u_char *)fragtbl[fs->fs_frag], in ffs_mapsearch() [all …]
|
H A D | mkfs.c | 271 if (sblock.fs_frag > MAXFRAG) { in ffs_mkfs() 319 sblock.fs_frag); in ffs_mkfs() 385 sblock.fs_fpg -= sblock.fs_frag; in ffs_mkfs() 409 sblock.fs_fpg -= sblock.fs_frag; in ffs_mkfs() 477 howmany(csfrags, sblock.fs_frag); in ffs_mkfs() 593 if (i + fs->fs_frag > blks) in ffs_write_superblock() 699 d += sblock.fs_frag; in initcg() 704 acg.cg_frsum[sblock.fs_frag - i]++; in initcg() 716 d += sblock.fs_frag; in initcg() 783 for (i = 2 * sblock.fs_frag; in initcg() [all …]
|
/netbsd/sbin/newfs/ |
H A D | mkfs.c | 305 if (sblock.fs_frag > MAXFRAG) { in mkfs() 345 sblock.fs_frag); in mkfs() 393 (sblock.fs_frag + fragsperinodeblk); in mkfs() 417 inodeblks * sblock.fs_frag); in mkfs() 526 howmany(csfrags, sblock.fs_frag); in mkfs() 878 d += sblock.fs_frag; in initcg() 883 acg.cg_frsum[sblock.fs_frag - i]++; in initcg() 890 d + sblock.fs_frag <= acg.cg_ndblk; ) { in initcg() 901 d += sblock.fs_frag; in initcg() 1344 acg.cg_frsum[sblock.fs_frag - frag]++; in alloc() [all …]
|
/netbsd/sbin/resize_ffs/ |
H A D | resize_ffs.c | 540 n = dlow / newsb->fs_frag; in initcg() 583 if (dhigh % newsb->fs_frag) { in initcg() 584 n = newsb->fs_frag - (dhigh % newsb->fs_frag); in initcg() 608 dhigh += newsb->fs_frag; in initcg() 729 fwc += newsb->fs_frag; in find_freeblock() 730 hand += newsb->fs_frag; in find_freeblock() 1391 oldsb->fs_frag)) { in evict_data() 1398 oldsb->fs_frag); in evict_data() 1405 minfrag += oldsb->fs_frag; in evict_data() 1406 nfrag -= oldsb->fs_frag; in evict_data() [all …]
|
/netbsd/sys/ufs/ffs/ |
H A D | ffs_alloc.c | 804 return (cgbase(fs, cg) + fs->fs_frag); in ffs_blkpref_ufs1() 820 return (cgbase(fs, cg) + fs->fs_frag); in ffs_blkpref_ufs1() 824 return (cgbase(fs, cg) + fs->fs_frag); in ffs_blkpref_ufs1() 868 return (cgbase(fs, cg) + fs->fs_frag); in ffs_blkpref_ufs2() 884 return (cgbase(fs, cg) + fs->fs_frag); in ffs_blkpref_ufs2() 888 return (cgbase(fs, cg) + fs->fs_frag); in ffs_blkpref_ufs2() 1115 if (allocsiz == fs->fs_frag) { in ffs_alloccg() 1125 for (i = frags; i < fs->fs_frag; i++) in ffs_alloccg() 1127 i = fs->fs_frag - frags; in ffs_alloccg() 2185 (const u_char *)fragtbl[fs->fs_frag], in ffs_mapsearch() [all …]
|
H A D | ffs_subr.c | 151 inblk = (int)(fragtbl[fs->fs_frag][fragmap]) << 1; in ffs_fragacct() 153 for (siz = 1; siz < fs->fs_frag; siz++) { in ffs_fragacct() 154 if ((inblk & (1 << (siz + (fs->fs_frag & (NBBY - 1))))) == 0) in ffs_fragacct() 158 for (pos = siz; pos <= fs->fs_frag; pos++) { in ffs_fragacct()
|
H A D | fs.h | 271 int32_t fs_frag; /* number of frags in a block in fs */ member 668 (((map)[(loc) / NBBY] >> ((loc) % NBBY)) & (0xff >> (NBBY - (fs)->fs_frag))) 703 ((fsb) & ((fs)->fs_frag - 1)) 705 ((fsb) &~ ((fs)->fs_frag - 1))
|
H A D | ffs_vfsops.c | 961 for (i = 0; i < blks; i += fs->fs_frag) { in ffs_reload() 963 if (i + fs->fs_frag > blks) in ffs_reload() 1032 int32_t i, fs_bshift = 0, fs_fshift = 0, fs_fragshift = 0, fs_frag; in ffs_superblock_validate() local 1093 for (i = fs->fs_frag; i > 1; i >>= 1) in ffs_superblock_validate() 1109 if ((fs_frag = ffs_numfrags(fs, fs->fs_bsize)) > MAXFRAG) in ffs_superblock_validate() 1111 if (fs->fs_frag != fs_frag) in ffs_superblock_validate() 1480 for (i = 0; i < blks; i += fs->fs_frag) { in ffs_mountfs() 1482 if (i + fs->fs_frag > blks) in ffs_mountfs() 1562 ump->um_seqinc = fs->fs_frag; in ffs_mountfs() 2443 for (i = 0; i < blks; i += fs->fs_frag) { in ffs_cgupdate() [all …]
|
H A D | ffs_snapshot.c | 474 numblks = howmany(fs->fs_size, fs->fs_frag); 590 i = fs->fs_frag - loc % fs->fs_frag; 591 len = (i == fs->fs_frag) ? 0 : i * fs->fs_fsize; 819 numblks = howmany(fs->fs_size, fs->fs_frag); 991 numblks = howmany(fs->fs_size, fs->fs_frag); 992 len = howmany(fs->fs_fpg, fs->fs_frag); 993 base = cgbase(fs, cg) / fs->fs_frag; 1789 ffs_lblktosize(fs, howmany(fs->fs_size, fs->fs_frag)), in ffs_snapshot_mount() 1804 ffs_lblktosize(fs, howmany(fs->fs_size, fs->fs_frag)), in ffs_snapshot_mount()
|
/netbsd/sbin/fsck_ffs/ |
H A D | pass5.c | 202 dmax = ffs_blknum(fs, fs->fs_size + fs->fs_frag - 1); in pass5() 292 newcg->cg_nclusterblks = newcg->cg_ndblk / fs->fs_frag; in pass5() 357 d += fs->fs_frag, i += fs->fs_frag) { in pass5() 359 for (j = 0; j < fs->fs_frag; j++) { in pass5() 365 if (frags == fs->fs_frag) { in pass5()
|
H A D | utilities.c | 246 FFS_FSBTODB(sblock, sblock->fs_csaddr + j * sblock->fs_frag), in flush() 412 if (frags <= 0 || frags > sblock->fs_frag) in allocblk() 414 for (i = 0; i < maxfsblock - sblock->fs_frag; i += sblock->fs_frag) { in allocblk() 415 for (j = 0; j <= sblock->fs_frag - frags; j++) { in allocblk() 439 if (frags == sblock->fs_frag) { in allocblk()
|
H A D | pass4.c | 202 if (idesc->id_numfrags != sblock->fs_frag && in pass4check() 211 if (cgp && res != SKIP && idesc->id_numfrags == sblock->fs_frag) { in pass4check()
|
H A D | inode.c | 104 idesc->id_numfrags = sblock->fs_frag; in ckinode() 136 idesc->id_numfrags = sblock->fs_frag; in ckinode() 285 if (cnt > sblock->fs_frag || in chkrange() 286 ffs_fragnum(sblock, blk) + cnt > sblock->fs_frag) { in chkrange() 776 nfrags = sblock->fs_frag; in allocino() 942 *blkno = allocblk(sblock->fs_frag); in getnewblk()
|
H A D | main.c | 498 (long long)(n_ffree + sblock->fs_frag * n_bfree)); in checkfilesys() 512 if (n_blks -= maxfsblock - (n_ffree + sblock->fs_frag * n_bfree)) in checkfilesys()
|
H A D | setup.c | 475 FFS_FSBTODB(sblock, sblock->fs_csaddr + j * sblock->fs_frag), in setup() 488 sblock->fs_csaddr + j * sblock->fs_frag), in setup() 937 asb->fs_frag != sb->fs_frag || in cmpsblks() 1138 howmany(geo.dg_nsectors, nspf), fs->fs_frag); in calcsb()
|
H A D | dir.c | 774 if ((newblk = allocblk(sblock->fs_frag)) == 0) in expanddir() 831 freeblk(newblk, sblock->fs_frag); in expanddir()
|
H A D | pass1.c | 453 idesc->id_numfrags = sblock->fs_frag; in checkinode()
|
/netbsd/usr.sbin/dumpfs/ |
H A D | dumpfs.c | 362 fs->fs_frag, fs->fs_fragshift, fs->fs_fsbtodb); in print_superblock() 366 fs->fs_fpg / fs->fs_frag, fs->fs_fpg, fs->fs_ipg); in print_superblock() 504 (off_t)(FFS_FSBTODB(&afs, (afs.fs_csaddr + j * afs.fs_frag))) * in print_cgsum() 641 for (i = 1, j = 0; i < afs.fs_frag; i++) { in dumpcg()
|
/netbsd/sbin/dump/ |
H A D | ffs_inode.c | 147 ufsi.ufs_frag = sblock->fs_frag; in fs_parametrize()
|
/netbsd/sys/arch/sparc/stand/bootblk/ |
H A D | genfth.cf | 128 member fs_frag
|
H A D | bootblk.fth | 235 \ : ffs-fragnum ( fsb fs -- off ) fs_frag l@ 1- and ; 236 \ : ffs-blknum ( fsb fs -- off ) fs_frag l@ 1- not and ;
|