Lines Matching defs:mount

47  * NOTE: When changing statfs structure, mount structure, MNT_* flags or
48 * MNTK_* flags also update DDB show mount command in vfs_subr.c.
84 uint64_t f_flags; /* copy of mount exported flags */
92 uint64_t f_syncwrites; /* count of sync writes since mount */
93 uint64_t f_asyncwrites; /* count of async writes since mount */
94 uint64_t f_syncreads; /* count of sync reads since mount */
95 uint64_t f_asyncreads; /* count of async reads since mount */
113 uint64_t f_flags; /* copy of mount exported flags */
121 uint64_t f_syncwrites; /* count of sync writes since mount */
122 uint64_t f_asyncwrites; /* count of async writes since mount */
123 uint64_t f_syncreads; /* count of sync reads since mount */
124 uint64_t f_asyncreads; /* count of async reads since mount */
154 int f_flags; /* copy of mount exported flags */
155 long f_syncwrites; /* count of sync writes since mount */
156 long f_asyncwrites; /* count of async writes since mount */
159 long f_syncreads; /* count of sync reads since mount */
160 long f_asyncreads; /* count of async reads since mount */
199 * filesystem. This is expected to be stored in the upper FS' per-mount data.
202 * i - lower mount interlock
206 struct mount *mp; /* (c) mount object for upper FS */
226 struct mount {
235 struct mtx __aligned(CACHE_LINE_SIZE) mnt_mtx; /* mount structure interlock */
236 int mnt_gen; /* struct mount generation */
238 TAILQ_ENTRY(mount) mnt_list; /* (m) mount list */
244 struct vfsoptlist *mnt_opt; /* current mount options */
268 STAILQ_ENTRY(mount) mnt_taskqueue_link; /* (d) our place in deferred unmount list */
278 struct vnode *__mnt_vnode_next_all(struct vnode **mvp, struct mount *mp);
279 struct vnode *__mnt_vnode_first_all(struct vnode **mvp, struct mount *mp);
280 void __mnt_vnode_markerfree_all(struct vnode **mvp, struct mount *mp);
298 struct vnode *__mnt_vnode_next_lazy(struct vnode **mvp, struct mount *mp,
300 struct vnode *__mnt_vnode_first_lazy(struct vnode **mvp, struct mount *mp,
302 void __mnt_vnode_markerfree_lazy(struct vnode **mvp, struct mount *mp);
395 * NFS export related mount flags.
420 * but the 'mount' program may need changing to handle this.
448 * but because MNT_ACLS and MNT_MULTILABEL are only used for mount(2),
452 #define MNT_UPDATE 0x0000000000010000ULL /* not real mount, just update */
459 #define MNT_NOCOVER 0x0000001000000000ULL /* Do not cover a mount point */
460 #define MNT_EMPTYDIR 0x0000002000000000ULL /* Only mount on empty dir */
471 * MNTK_UNMOUNT locks the mount entry so that name lookup cannot
472 * proceed past the mount point. This keeps the subtree stable during
522 MNT_SHARED_WRITES(struct mount *mp)
529 MNT_EXTENDED_SHARED(struct mount *mp)
548 * mount specific header files.
568 fsid_t fh_fsid; /* Filesystem id of mount point */
605 * Export arguments for local filesystem mount calls.
629 struct mount *np_mount; /* Mountpoint of exported fs */
636 * mount time to identify the requested filesystem.
648 int vfc_prison_flag; /* prison allow.mount.* flag */
649 struct vfsoptdecl *vfc_opts; /* mount options */
780 * N.B., vfs_cmount is the ancient vfsop invoked by the old mount(2) syscall.
789 * mount(2) entirely.
792 typedef int vfs_unmount_t(struct mount *mp, int mntflags);
793 typedef int vfs_root_t(struct mount *mp, int flags, struct vnode **vpp);
794 typedef int vfs_quotactl_t(struct mount *mp, int cmds, uid_t uid, void *arg,
796 typedef int vfs_statfs_t(struct mount *mp, struct statfs *sbp);
797 typedef int vfs_sync_t(struct mount *mp, int waitfor);
798 typedef int vfs_vget_t(struct mount *mp, ino_t ino, int flags,
800 typedef int vfs_fhtovp_t(struct mount *mp, struct fid *fhp,
802 typedef int vfs_checkexp_t(struct mount *mp, struct sockaddr *nam,
807 typedef int vfs_extattrctl_t(struct mount *mp, int cmd,
810 typedef int vfs_mount_t(struct mount *mp);
811 typedef int vfs_sysctl_t(struct mount *mp, fsctlop_t op,
813 typedef void vfs_susp_clean_t(struct mount *mp);
814 typedef void vfs_notify_lowervp_t(struct mount *mp, struct vnode *lowervp);
815 typedef void vfs_purge_t(struct mount *mp);
817 typedef int vfs_report_lockf_t(struct mount *mp, struct sbuf *sb);
991 int dounmount(struct mount *, uint64_t, struct thread *);
1001 void vfs_mount_destroy(struct mount *);
1024 (struct mount *, struct netexport *, struct export_args *);
1025 void vfs_periodic(struct mount *, int);
1026 int vfs_busy(struct mount *, int);
1027 void vfs_exjail_clone(struct mount *, struct mount *);
1029 int vfs_export /* process mount export info */
1030 (struct mount *, struct export_args *, bool);
1032 void vfs_allocate_syncvnode(struct mount *);
1033 void vfs_deallocate_syncvnode(struct mount *);
1036 void vfs_getnewfsid(struct mount *);
1037 struct mount *vfs_getvfs(fsid_t *); /* return vfs given fsid */
1038 struct mount *vfs_busyfs(fsid_t *);
1040 void vfs_mount_error(struct mount *, const char *, ...);
1041 void vfs_mountroot(void); /* mount our root filesystem */
1042 void vfs_mountedfrom(struct mount *, const char *from);
1044 struct mount *vfs_ref_from_vp(struct vnode *);
1045 void vfs_ref(struct mount *);
1046 void vfs_rel(struct mount *);
1047 struct mount *vfs_mount_alloc(struct vnode *, struct vfsconf *, const char *,
1049 int vfs_suser(struct mount *, struct thread *);
1050 void vfs_unbusy(struct mount *);
1052 struct mount *vfs_register_upper_from_vp(struct vnode *,
1053 struct mount *ump, struct mount_upper_node *);
1054 void vfs_register_for_notification(struct mount *, struct mount *,
1056 void vfs_unregister_for_notification(struct mount *,
1058 void vfs_unregister_upper(struct mount *, struct mount_upper_node *);
1059 int vfs_remount_ro(struct mount *mp);
1060 int vfs_report_lockf(struct mount *mp, struct sbuf *sb);
1062 extern TAILQ_HEAD(mntlist, mount) mountlist; /* mounted filesystem list */
1070 struct vnode *mntfs_allocvp(struct mount *, struct vnode *);
1095 struct vnode *vfs_cache_root_clear(struct mount *);
1096 void vfs_cache_root_set(struct mount *, struct vnode *);
1098 void vfs_op_barrier_wait(struct mount *);
1099 void vfs_op_enter(struct mount *);
1100 void vfs_op_exit_locked(struct mount *);
1101 void vfs_op_exit(struct mount *);
1104 void vfs_assert_mount_counters(struct mount *);
1105 void vfs_dump_mount_counters(struct mount *);
1112 int vfs_mount_fetch_counter(struct mount *, enum mount_counter);
1202 int mount(const char *, const char *, int, void *);