Home
last modified time | relevance | path

Searched refs:fs_size (Results 1 – 20 of 20) sorted by relevance

/netbsd/sbin/resize_ffs/
H A Dresize_ffs.c479 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 Dmkfs.c291 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 Dffs_alloc.c115 if (bpref >= fs->fs_size) in ffs_alloc()
448 if (bno >= fs->fs_size) { in ffs_blkfree()
/netbsd/sbin/newfs/
H A Dmkfs.c313 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 Dscan_ffs.c137 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 Dpass5.c202 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 Dsetup.c231 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 Dutilities.c672 fs->fs_size = fs->fs_old_size; in sb_oldfscompat_read()
/netbsd/sys/ufs/mfs/
H A Dmfs_miniroot.c65 mfs_rootsize = fs->fs_fsize * fs->fs_size; in mfs_initminiroot()
/netbsd/sys/lib/libsa/
H A Dffs_bswap.c88 n->fs_size = bswap64(o->fs_size); in ffs_sb_swap()
/netbsd/usr.sbin/fstyp/
H A Dufs.c89 ((pp->mediasize / fs->fs_fsize == fs->fs_size) || in fstyp_ufs()
/netbsd/sys/ufs/ffs/
H A Dffs_snapshot.c474 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 Dffs_bswap.c87 n->fs_size = bswap64(o->fs_size); in ffs_sb_swap()
H A Dffs_wapbl.c573 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 Dffs_vfsops.c1055 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 Dffs_alloc.c144 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 Dfs.h347 int64_t fs_size; /* number of blocks in fs */ member
/netbsd/sbin/badsect/
H A Dbadsect.c211 if (fsbe > fs->fs_size) { in chkuse()
/netbsd/sbin/dump/
H A Dffs_inode.c143 ufsi.ufs_dsize = FFS_FSBTODB(sblock,sblock->fs_size); in fs_parametrize()
/netbsd/usr.sbin/dumpfs/
H A Ddumpfs.c278 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()