Lines Matching defs:mp
141 ffs_mountroot(mount_t mp, vnode_t rvp, vfs_context_t context)
147 vfs_setflags(mp, MNT_ASYNC);
149 if (error = ffs_mountfs(rvp, mp, context))
152 (void)ffs_statfs(mp, vfs_statfs(mp), NULL);
163 ffs_mount(struct mount *mp, vnode_t devvp, __unused user_addr_t data, vfs_context_t context)
178 if (mp->mnt_flag & MNT_UPDATE) {
179 ump = VFSTOUFS(mp);
181 if (fs->fs_ronly == 0 && (mp->mnt_flag & MNT_RDONLY)) {
185 VFS_SYNC(mp, MNT_WAIT, context);
191 if (mp->mnt_flag & MNT_FORCE)
193 if (error = ffs_flushfiles(mp, flags, p))
205 if ((mp->mnt_flag & MNT_RELOAD) || ronly)
208 (error = ffs_reload(mp, vfs_context_ucred(context), p)))
218 if (issingleuser() && (mp->mnt_flag & MNT_ROOTFS)) {
229 if (ronly && (mp->mnt_kern_flag & MNTK_WANTRDWR)) {
238 if ((mp->mnt_flag & MNT_UPDATE) == 0) {
240 error = ffs_mountfs(devvp, mp, context);
248 ump = VFSTOUFS(mp);
251 strncpy(fs->fs_fsmnt, (caddr_t)mp->mnt_vfsstat.f_mntonname, sizeof(fs->fs_fsmnt) - 1);
252 (void)ffs_statfs(mp, &mp->mnt_vfsstat, p);
464 ffs_mountfs(devvp, mp, context)
466 struct mount *mp;
489 ronly = vfs_isrdonly(mp);
494 vfs_setlocklocal(mp);
560 ((!(mp->mnt_flag & MNT_ROOTFS)) && (!fs->fs_clean))) {
625 mp->mnt_flag |= MNT_RDONLY;
710 mp->mnt_data = (qaddr_t)ump;
711 mp->mnt_vfsstat.f_fsid.val[0] = (long)dev;
712 mp->mnt_vfsstat.f_fsid.val[1] = vfs_typenum(mp);
713 /* XXX warning hardcoded max symlen and not "mp->mnt_maxsymlinklen = fs->fs_maxsymlinklen;" */
714 mp->mnt_maxsymlinklen = 60;
717 mp->mnt_flag |= MNT_REVEND;
719 ump->um_mountp = mp;
782 ffs_unmount(mp, mntflags, context)
783 struct mount *mp;
799 if ( (error = ffs_flushfiles(mp, flags, p)) && !force )
801 ump = VFSTOUFS(mp);
828 ffs_flushfiles(mp, flags, p)
829 register struct mount *mp;
836 ump = VFSTOUFS(mp);
844 if (mp->mnt_flag & MNT_QUOTA) {
860 error = vflush(mp, rootvp, SKIPSYSTEM|flags);
880 quotaoff(mp, i);
888 error = vflush(mp, NULLVP, SKIPSWAP|flags);
889 error = vflush(mp, NULLVP, flags);
897 ffs_statfs(mp, sbp, context)
898 struct mount *mp;
905 ump = VFSTOUFS(mp);
921 ffs_vfs_getattr(mp, fsap, context)
922 struct mount *mp;
935 ump = VFSTOUFS(mp);
953 fsap->f_fsid.val[0] = mp->mnt_vfsstat.f_fsid.val[0];
954 fsap->f_fsid.val[1] = mp->mnt_vfsstat.f_fsid.val[1];
960 bs = vfs_devblocksize(mp);
983 if (mp->mnt_flag & MNT_REVEND)
1073 ffs_vfs_setattr(mp, fsap, context)
1074 struct mount *mp;
1087 ump = VFSTOUFS(mp);
1092 bs = vfs_devblocksize(mp);
1121 if (mp->mnt_flag & MNT_REVEND)
1174 ffs_sync(mp, waitfor, context)
1175 struct mount *mp;
1180 struct ufsmount *ump = VFSTOUFS(mp);
1202 vnode_iterate(mp, 0, ffs_sync_callback, (void *)&args);
1213 qsync(mp);
1235 ffs_vget(mp, ino, vpp, context)
1236 mount_t mp;
1241 return(ffs_vget_internal(mp, (ino_t)ino, vpp, NULL, NULL, 0, 0));
1246 ffs_vget_internal(mp, ino, vpp, dvp, cnp, mode, fhwanted)
1247 mount_t mp;
1268 ump = VFSTOUFS(mp);
1272 if (mp->mnt_kern_flag & MNTK_UNMOUNT) {
1326 if (mp->mnt_flag & MNT_REVEND) {
1352 vfsp.vnfs_mp = mp;
1454 ffs_fhtovp(mp, fhlen, fhp, vpp, context)
1455 register struct mount *mp;
1471 fs = VFSTOUFS(mp)->um_fs;
1475 error = ffs_vget_internal(mp, ino, &nvp, NULL, NULL, 0, 1);
1559 ffs_sbupdate(mp, waitfor)
1560 struct ufsmount *mp;
1563 register struct fs *dfs, *fs = mp->um_fs;
1570 int rev_endian=(mp->um_mountp->mnt_flag & MNT_REVEND);
1582 bp = buf_getblk(mp->um_devvp, (daddr64_t)((unsigned)fsbtodb(fs, fs->fs_csaddr + i)),
1603 devBlockSize = vfs_devblocksize(mp->um_mountp);
1605 bp = buf_getblk(mp->um_devvp, (daddr64_t)((unsigned)(SBOFF/devBlockSize)), (int)fs->fs_sbsize, 0, 0, BLK_META);
1635 dfs->fs_maxfilesize = OSSwapInt64(mp->um_savedmaxfilesize); /* XXX */
1638 dfs->fs_maxfilesize = mp->um_savedmaxfilesize; /* XXX */