Lines Matching full:mp
130 smbfs_mount(struct mount *mp) in smbfs_mount() argument
144 if (mp->mnt_flag & (MNT_UPDATE | MNT_ROOTFS)) in smbfs_mount()
147 if (vfs_filteropt(mp->mnt_optnew, smbfs_opts)) { in smbfs_mount()
148 vfs_mount_error(mp, "%s", "Invalid option"); in smbfs_mount()
156 if (1 != vfs_scanopt(mp->mnt_optnew, "fd", "%d", &v)) { in smbfs_mount()
157 vfs_mount_error(mp, "No fd option"); in smbfs_mount()
165 vfs_mount_error(mp, "invalid device handle %d %d\n", v, error); in smbfs_mount()
172 mp->mnt_stat.f_iosize = SSTOVC(ssp)->vc_txmax; in smbfs_mount()
173 mp->mnt_data = smp; in smbfs_mount()
177 if (1 != vfs_scanopt(mp->mnt_optnew, in smbfs_mount()
179 vfs_mount_error(mp, "Invalid caseopt"); in smbfs_mount()
183 if (1 != vfs_scanopt(mp->mnt_optnew, "uid", "%d", &v)) { in smbfs_mount()
184 vfs_mount_error(mp, "Invalid uid"); in smbfs_mount()
190 if (1 != vfs_scanopt(mp->mnt_optnew, "gid", "%d", &v)) { in smbfs_mount()
191 vfs_mount_error(mp, "Invalid gid"); in smbfs_mount()
197 if (1 != vfs_scanopt(mp->mnt_optnew, "file_mode", "%d", &v)) { in smbfs_mount()
198 vfs_mount_error(mp, "Invalid file_mode"); in smbfs_mount()
204 if (1 != vfs_scanopt(mp->mnt_optnew, "dir_mode", "%d", &v)) { in smbfs_mount()
205 vfs_mount_error(mp, "Invalid dir_mode"); in smbfs_mount()
211 vfs_flagopt(mp->mnt_optnew, in smbfs_mount()
214 pc = mp->mnt_stat.f_mntfromname; in smbfs_mount()
215 pe = pc + sizeof(mp->mnt_stat.f_mntfromname); in smbfs_mount()
228 vfs_getnewfsid(mp); in smbfs_mount()
229 error = smbfs_root(mp, LK_EXCLUSIVE, &vp); in smbfs_mount()
231 vfs_mount_error(mp, "smbfs_root error: %d", error); in smbfs_mount()
238 SMBERROR("mp=%p\n", mp); in smbfs_mount()
256 /* Unmount the filesystem described by mp. */
258 smbfs_unmount(struct mount *mp, int mntflags) in smbfs_unmount() argument
261 struct smbmount *smp = VFSTOSMBFS(mp); in smbfs_unmount()
282 error = vflush(mp, 1, flags, td); in smbfs_unmount()
297 mp->mnt_data = NULL; in smbfs_unmount()
309 smbfs_root(struct mount *mp, int flags, struct vnode **vpp) in smbfs_root() argument
311 struct smbmount *smp = VFSTOSMBFS(mp); in smbfs_root()
332 error = smbfs_nget(mp, NULL, NULL, 0, &fattr, &vp); in smbfs_root()
350 smbfs_quotactl(struct mount *mp, int cmd, uid_t uid, void *arg, bool *mp_busy) in smbfs_quotactl() argument
380 smbfs_statfs(struct mount *mp, struct statfs *sbp) in smbfs_statfs() argument
383 struct smbmount *smp = VFSTOSMBFS(mp); in smbfs_statfs()
390 vfs_mount_error(mp, "np == NULL"); in smbfs_statfs()