Lines Matching refs:mount
142 void enablequotas(struct mount *mp, vfs_context_t ctx);
147 static int munge_statfs(struct mount *mp, struct vfsstatfs *sfsp,
150 static int statfs64_common(struct mount *mp, struct vfsstatfs *sfsp, user_addr_t bufp);
190 * incremented each time a mount or unmount operation occurs
192 * mount structure utilized by cache_lookup_path
196 /* counts number of mount and unmount operations */
212 mount(proc_t p, struct mount_args *uap, __unused register_t *retval)
233 struct mount *mp;
299 * Only root, or the user that did the original mount is
315 * and MNT_NOEXEC if mount point is already MNT_NOEXEC.
332 * onto which we are attempting to mount.
343 * MNT_NOEXEC if mount point is already MNT_NOEXEC.
389 MALLOC_ZONE(mp, struct mount *, (u_long)sizeof(struct mount),
391 bzero((char *)mp, (u_long)sizeof(struct mount));
429 * Set the mount level flags.
488 * If mount by non-root, then verify that user has necessary
621 * Put the new filesystem on the mount list after root.
722 /* Now that mount is setup, notify the listeners */
742 FREE_ZONE((caddr_t)mp, sizeof (struct mount), M_MOUNT);
784 FREE_ZONE((caddr_t)mp, sizeof (struct mount), M_MOUNT);
793 enablequotas(struct mount *mp, vfs_context_t ctx)
809 * We ignore errors as this should not interfere with final mount
883 * mounted. If so, replace them with the new mount point.
904 panic("mount: lost mount: error %d", err);
936 struct mount *mp;
966 /* safedounmount consumes the mount ref */
981 /* safedounmount consumes the mount ref */
987 * The mount struct comes with a mount ref which will be consumed.
991 safedounmount(struct mount *mp, int flags, vfs_context_t ctx)
997 * Only root, or the user that did the original mount is
1023 dounmount(struct mount *mp, int flags, int withref, vfs_context_t ctx)
1108 /* make sure there are no one in the mount iterations or lookup */
1139 /* mark the mount point hook in the vp but not drop the ref yet */
1143 coveredvp->v_mountedhere = (struct mount *)0;
1161 * which will drop the mount lock
1190 FREE_ZONE((caddr_t)mp, sizeof (struct mount), M_MOUNT);
1201 FREE_ZONE((caddr_t)mp, sizeof (struct mount), M_MOUNT);
1214 panic("mount cross refs -ve");
1224 FREE_ZONE((caddr_t)mp, sizeof (struct mount), M_MOUNT);
1303 struct mount *mp;
1414 struct mount *mp;
1448 struct mount *mp;
1480 statfs64_common(struct mount *mp, struct vfsstatfs *sfsp, user_addr_t bufp)
1514 struct mount *mp;
1548 struct mount *mp;
1805 struct mount *mp;
4886 * Allow the renaming of mount points.
5000 * the mount point before we
5002 * the iocounts are gone, the mount
5161 * update filesystem's mount point data
5166 struct mount *mp;
5180 /* find current mount point prefix */
6843 munge_statfs(struct mount *mp, struct vfsstatfs *sfsp,