/netbsd/sbin/resize_ffs/ |
H A D | resize_ffs.c | 479 dmax = newsb->fs_size - base; in initcg() 909 dmax = newsb->fs_size - base; in recompute_fs_dsize() 976 if (newsb->fs_size == oldsb->fs_size) in makegeometry() 993 ", not growing.\n", newsb->fs_size, oldsb->fs_size); in grow() 999 " blocks.\n", oldsb->fs_size, newsb->fs_size); in grow() 1050 if (oldsb->fs_size % oldsb->fs_fpg) { in grow() 1245 for (i = 0; i < oldsb->fs_size; i++) in blkmove_init() 1759 ", not shrinking.\n", newsb->fs_size, oldsb->fs_size); in shrink() 1770 " blocks.\n", oldsb->fs_size, newsb->fs_size); in shrink() 1794 dmax = oldsb->fs_size - base; in shrink() [all …]
|
/netbsd/usr.sbin/makefs/ffs/ |
H A D | mkfs.c | 291 sblock.fs_old_size = sblock.fs_size; in ffs_mkfs() 347 if (minfpg > sblock.fs_size) in ffs_mkfs() 348 minfpg = sblock.fs_size; in ffs_mkfs() 379 if (sblock.fs_size / sblock.fs_fpg < 1) in ffs_mkfs() 401 if (sblock.fs_size < lastminfpg) { in ffs_mkfs() 403 (long long)sblock.fs_size, lastminfpg); in ffs_mkfs() 406 if (sblock.fs_size % sblock.fs_fpg >= lastminfpg || in ffs_mkfs() 407 sblock.fs_size % sblock.fs_fpg == 0) in ffs_mkfs() 479 ffs_fragnum(&sblock, sblock.fs_size) + in ffs_mkfs() 626 if (dmax > sblock.fs_size) in initcg() [all …]
|
H A D | ffs_alloc.c | 115 if (bpref >= fs->fs_size) in ffs_alloc() 448 if (bno >= fs->fs_size) { in ffs_blkfree()
|
/netbsd/sbin/newfs/ |
H A D | mkfs.c | 313 sblock.fs_size = FFS_DBTOFSB(&sblock, fssize); in mkfs() 315 if ((uint64_t)sblock.fs_size >= 1ull << 31) { in mkfs() 326 sblock.fs_old_size = sblock.fs_size; in mkfs() 392 inodeblks = (sblock.fs_size - sblock.fs_iblkno) / in mkfs() 416 u = sblock.fs_size / 2 / (sblock.fs_iblkno + in mkfs() 440 ncg = howmany(sblock.fs_size, sblock.fs_fpg); in mkfs() 453 i = sblock.fs_size - sblock.fs_fpg * (ncg - 1ull); in mkfs() 463 sblock.fs_size -= i; in mkfs() 528 ffs_fragnum(&sblock, sblock.fs_size) + in mkfs() 792 if (dmax > sblock.fs_size) in initcg() [all …]
|
/netbsd/sbin/scan_ffs/ |
H A D | scan_ffs.c | 137 sbi->ffs->fs_size = sbi->ffs->fs_old_size; in ffs_checkver() 162 (uint64_t)sbi->ffs->fs_size * in ffs_printpart() 170 (uint64_t)sbi->ffs->fs_size * in ffs_printpart() 179 (uint64_t)(sbi->ffs->fs_size * in ffs_printpart() 215 (uint64_t)(sbi->ffs->fs_size * in ffs_printpart()
|
/netbsd/sbin/fsck_ffs/ |
H A D | pass5.c | 202 dmax = ffs_blknum(fs, fs->fs_size + fs->fs_frag - 1); in pass5() 203 for (d = fs->fs_size; d < dmax; d++) in pass5() 269 if (dmax > fs->fs_size) in pass5() 270 dmax = fs->fs_size; in pass5()
|
H A D | setup.c | 231 maxfsblock = sblock->fs_size; in setup() 1130 fs->fs_ncg = howmany(fs->fs_size, fs->fs_fpg); in calcsb() 1140 fs->fs_ncg = howmany(fs->fs_size / geo.dg_secpercyl, in calcsb()
|
H A D | utilities.c | 672 fs->fs_size = fs->fs_old_size; in sb_oldfscompat_read()
|
/netbsd/sys/ufs/mfs/ |
H A D | mfs_miniroot.c | 65 mfs_rootsize = fs->fs_fsize * fs->fs_size; in mfs_initminiroot()
|
/netbsd/sys/lib/libsa/ |
H A D | ffs_bswap.c | 88 n->fs_size = bswap64(o->fs_size); in ffs_sb_swap()
|
/netbsd/usr.sbin/fstyp/ |
H A D | ufs.c | 89 ((pp->mediasize / fs->fs_fsize == fs->fs_size) || in fstyp_ufs()
|
/netbsd/sys/ufs/ffs/ |
H A D | ffs_snapshot.c | 474 numblks = howmany(fs->fs_size, fs->fs_frag); 819 numblks = howmany(fs->fs_size, fs->fs_frag); 991 numblks = howmany(fs->fs_size, fs->fs_frag); 1498 if (fs->fs_size - blkno > FFS_NINDIR(fs)) in ffs_snapremove() 1501 last = fs->fs_size - blkno; in ffs_snapremove() 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() 1912 if (bp->b_blkno >= FFS_FSBTODB(fs, fs->fs_size)) { in ffs_copyonwrite() 2085 fsbytes = ffs_lfragtosize(fs, fs->fs_size); in ffs_snapshot_read()
|
H A D | ffs_bswap.c | 87 n->fs_size = bswap64(o->fs_size); in ffs_sb_swap()
|
H A D | ffs_wapbl.c | 573 ffs_lfragtosize(fs, fs->fs_size) / UFS_WAPBL_JOURNAL_SCALE; in wapbl_log_position() 581 logstart = FFS_FSBTODB(fs, fs->fs_size); in wapbl_log_position()
|
H A D | ffs_vfsops.c | 1055 if (fs->fs_size == 0 && fs->fs_old_size == 0) in ffs_superblock_validate() 1441 error = bread(devvp, FFS_FSBTODB(fs, fs->fs_size - 1), in ffs_mountfs() 1445 (intmax_t)FFS_FSBTODB(fs, fs->fs_size - 1), in ffs_mountfs() 1679 fs->fs_size = fs->fs_old_size; in ffs_oldfscompat_read()
|
H A D | ffs_alloc.c | 144 if (bno >= fs->fs_size) { in ffs_check_bad_allocation() 252 if (bpref >= fs->fs_size) in ffs_alloc() 435 if (bpref >= fs->fs_size) in ffs_realloccg() 1468 KASSERT(bno < fs->fs_size); in ffs_blkalloc_ump()
|
H A D | fs.h | 347 int64_t fs_size; /* number of blocks in fs */ member
|
/netbsd/sbin/badsect/ |
H A D | badsect.c | 211 if (fsbe > fs->fs_size) { in chkuse()
|
/netbsd/sbin/dump/ |
H A D | ffs_inode.c | 143 ufsi.ufs_dsize = FFS_FSBTODB(sblock,sblock->fs_size); in fs_parametrize()
|
/netbsd/usr.sbin/dumpfs/ |
H A D | dumpfs.c | 278 fs->fs_size = fs->fs_old_size; in fix_superblock() 353 fs->fs_ncg, fs->fs_old_ncyl, (long long)fs->fs_size, (long long)fs->fs_dsize); in print_superblock() 356 fs->fs_ncg, (long long)fs->fs_size, (long long)fs->fs_dsize); in print_superblock()
|