Lines Matching defs:fsp
466 struct fs *fsp;
491 fsp = getfs(vfsp);
504 fsp = ufsvfsp->vfs_fs;
507 (fsp->fs_rolled == FS_NEED_ROLL)) {
511 ufsvfsp, fsp);
513 fsp->fs_rolled = FS_ALL_ROLLED;
566 fsp = getfs(vfsp);
567 clkset(doclkset ? fsp->fs_time : -1);
581 struct fs *fsp = (struct fs *)bp->b_un.b_addr;
628 if (fsp->fs_flags & FSLARGEFILES) {
638 if (fsp->fs_ronly == 0)
717 (void) strncpy(fspt->fs_fsmnt, fsp->fs_fsmnt, MAXMNTLEN);
719 kmem_free(fsp->fs_u.fs_csp, fsp->fs_cssize);
724 fsp->fs_clean = FSSTABLE;
730 if (fsp->fs_clean != FSSTABLE) {
737 fsp->fs_clean = FSLOG;
741 fsp->fs_clean = FSSUSPEND;
745 fsp->fs_fmod = 0;
746 fsp->fs_ronly = 0;
762 if (fsp->fs_reclaim & (FS_RECLAIM|FS_RECLAIMING)) {
763 fsp->fs_reclaim &= ~FS_RECLAIM;
764 fsp->fs_reclaim |= FS_RECLAIMING;
800 struct fs *fsp;
873 fsp = (struct fs *)tp->b_un.b_addr;
875 if ((fsp->fs_magic != FS_MAGIC) && (fsp->fs_magic != MTB_UFS_MAGIC)) {
877 "mount: not a UFS magic number (0x%x)", fsp->fs_magic);
882 if ((fsp->fs_magic == FS_MAGIC) &&
883 (fsp->fs_version != UFS_EFISTYLE4NONEFI_VERSION_2 &&
884 fsp->fs_version != UFS_VERSION_MIN)) {
887 fsp->fs_version);
892 if ((fsp->fs_magic == MTB_UFS_MAGIC) &&
893 (fsp->fs_version > MTB_UFS_VERSION_1 ||
894 fsp->fs_version < MTB_UFS_VERSION_MIN)) {
897 fsp->fs_version);
903 if (fsp->fs_magic == MTB_UFS_MAGIC) {
916 if ((((diskaddr_t)(fsp->fs_size)) << fsp->fs_fsbtodb)
928 if (fsp->fs_bsize > MAXBSIZE || fsp->fs_frag > MAXFRAG ||
929 fsp->fs_bsize < sizeof (struct fs) || fsp->fs_bsize < PAGESIZE) {
954 ufsvfsp->vfs_dirsize = INODESIZE + (4 * ALLOCSIZE) + fsp->fs_fsize;
956 (int)((int64_t)fsp->fs_dsize * fsp->fs_minfree / 100);
974 if (fsp->fs_logbno && fsp->fs_clean == FSLOG &&
975 (fsp->fs_state + fsp->fs_time == FSOKAY)) {
976 error = lufs_snarf(ufsvfsp, fsp, (vfsp->vfs_flag & VFS_RDONLY));
991 fsp = (struct fs *)tp->b_un.b_addr;
1006 bp = ngeteblk(fsp->fs_bsize);
1011 bp->b_bcount = fsp->fs_sbsize;
1012 bcopy(tp->b_un.b_addr, bp->b_un.b_addr, fsp->fs_sbsize);
1017 fsp = (struct fs *)bp->b_un.b_addr;
1027 (fsp->fs_flags & FSLARGEFILES) &&
1034 fsp->fs_ronly = 1;
1035 fsp->fs_fmod = 0;
1036 if (((fsp->fs_state + fsp->fs_time) == FSOKAY) &&
1037 ((fsp->fs_clean == FSCLEAN) ||
1038 (fsp->fs_clean == FSSTABLE) ||
1039 (fsp->fs_clean == FSLOG))) {
1041 if (fsp->fs_clean == FSLOG) {
1042 if (fsp->fs_rolled == FS_ALL_ROLLED) {
1049 fsp->fs_clean = FSSTABLE;
1051 fsp->fs_clean = FSBAD;
1055 fsp->fs_fmod = 0;
1056 fsp->fs_ronly = 0;
1061 (((fsp->fs_state + fsp->fs_time) == FSOKAY) &&
1062 fsp->fs_clean == FSLOG && !TRANS_ISTRANS(ufsvfsp))) {
1069 if (((fsp->fs_state + fsp->fs_time) == FSOKAY) &&
1070 (fsp->fs_clean == FSCLEAN ||
1071 fsp->fs_clean == FSSTABLE ||
1072 fsp->fs_clean == FSLOG))
1073 fsp->fs_clean = FSSTABLE;
1081 fsp->fs_clean = FSBAD;
1090 if (fsp->fs_clean == FSSTABLE && TRANS_ISTRANS(ufsvfsp))
1091 fsp->fs_clean = FSLOG;
1096 vfsp->vfs_bsize = fsp->fs_bsize;
1101 if (error = ufs_getsummaryinfo(dev, ufsvfsp, fsp))
1113 (void) copystr(path, fsp->fs_fsmnt, sizeof (fsp->fs_fsmnt) - 1, &len);
1114 bzero(fsp->fs_fsmnt + len, sizeof (fsp->fs_fsmnt) - len);
1119 if (fsp->fs_postblformat == FS_42POSTBLFMT)
1122 ufsvfsp->vfs_nrpos = fsp->fs_nrpos;
1190 ufsvfsp->vfs_nindiroffset = fsp->fs_nindir - 1;
1192 ufsvfsp->vfs_ioclustsz = fsp->fs_bsize * fsp->fs_maxcontig;
1208 ufsvfsp->vfs_avgbfree = fsp->fs_cstotal.cs_nbfree / fsp->fs_ncg;
1213 ufsvfsp->vfs_nolog_si = (fsp->fs_ncg < ufs_ncg_log);
1225 if (!fsp->fs_ronly && (fsp->fs_reclaim &
1227 fsp->fs_reclaim &= ~FS_RECLAIM;
1228 fsp->fs_reclaim |= FS_RECLAIMING;
1234 fsp->fs_rolled = FS_NEED_ROLL;
1235 } else if (!fsp->fs_ronly && (fsp->fs_reclaim &
1247 fsp->fs_reclaim &= ~FS_RECLAIM;
1248 fsp->fs_reclaim |= FS_RECLAIMING;
1253 if (!fsp->fs_ronly) {
1781 struct fs *fsp;
1791 fsp = ufsvfsp->vfs_fs;
1792 if ((fsp->fs_magic != FS_MAGIC) && (fsp->fs_magic != MTB_UFS_MAGIC))
1794 if (fsp->fs_magic == FS_MAGIC &&
1795 (fsp->fs_version != UFS_EFISTYLE4NONEFI_VERSION_2 &&
1796 fsp->fs_version != UFS_VERSION_MIN))
1798 if (fsp->fs_magic == MTB_UFS_MAGIC &&
1799 (fsp->fs_version > MTB_UFS_VERSION_1 ||
1800 fsp->fs_version < MTB_UFS_VERSION_MIN))
1808 sp->f_bsize = fsp->fs_bsize;
1809 sp->f_frsize = fsp->fs_fsize;
1810 sp->f_blocks = (fsblkcnt64_t)fsp->fs_dsize;
1811 sp->f_bfree = (fsblkcnt64_t)fsp->fs_cstotal.cs_nbfree * fsp->fs_frag +
1812 fsp->fs_cstotal.cs_nffree;
1814 sp->f_files = (fsfilcnt64_t)fsp->fs_ncg * fsp->fs_ipg;
1815 sp->f_ffree = (fsfilcnt64_t)fsp->fs_cstotal.cs_nifree;
1832 max_avail = fsp->fs_dsize - ufsvfsp->vfs_minfrags;
1834 used = (fsp->fs_dsize - sp->f_bfree);
1850 if (fsp->fs_cpc == 0) {
1854 blk = fsp->fs_spc * fsp->fs_cpc / NSPF(fsp);
1855 for (i = 0; i < blk; i += fsp->fs_frag) /* CSTYLED */
1857 i -= fsp->fs_frag;
1858 blk = i / fsp->fs_frag;
1859 bcopy(&(fs_rotbl(fsp)[blk]), sp->f_fstr, 14);
2215 struct fs *fsp = ufsvfsp->vfs_fs;
2250 if (!fsp->fs_ronly) {
2258 if (!fsp->fs_ronly && (fsp->fs_reclaim &
2260 fsp->fs_reclaim &= ~FS_RECLAIM;
2261 fsp->fs_reclaim |= FS_RECLAIMING;