Lines Matching refs:mount

61  *	@(#)mount.h	8.21 (Berkeley) 5/20/95
114 uint32_t f_flags; /* copy of mount exported flags */ \
151 long f_flags; /* copy of mount exported flags */
175 uint64_t f_flags; /* copy of mount exported flags */
293 * NFS export related mount flags.
329 * but the 'mount' program may need changing to handle this.
345 #define MNT_UPDATE 0x00010000 /* not a real mount, just an update */
360 #define VFS_NUMMNTOPS 1 /* int: total num of vfs mount/unmount operations */
364 * mount specific header files.
382 struct mount;
383 typedef struct mount * mount_t;
474 /* Structure for setting device IO parameters per mount point */
501 #define VFS_TBLGENERICMNTARGS 0x0200 /* force generic mount args for local fs */
524 @discussion Typical operations include setting the mount-specific data with vfs_setfsprivate().
525 Note that if a mount call fails, the filesystem must clean up any state it has constructed, because
526 vfs-level mount code will not clean it up.
530 @param context Context to authenticate for mount.
534 int (*vfs_mount)(struct mount *mp, vnode_t devvp, user_addr_t data, vfs_context_t context);
538 @abstract Mark a mount as ready to be used.
539 @discussion After receiving this calldown, a filesystem will be hooked into the mount list and should expect
543 @param context Context to authenticate for mount.
546 int (*vfs_start)(struct mount *mp, int flags, vfs_context_t context);
552 state related to the mount.
558 int (*vfs_unmount)(struct mount *mp, int mntflags, vfs_context_t context);
570 int (*vfs_root)(struct mount *mp, struct vnode **vpp, vfs_context_t context);
582 int (*vfs_quotactl)(struct mount *mp, int cmds, uid_t uid, caddr_t arg, vfs_context_t context);
594 int (*vfs_getattr)(struct mount *mp, struct vfs_attr *, vfs_context_t context);
595 /* int (*vfs_statfs)(struct mount *mp, struct vfsstatfs *sbp, vfs_context_t context);*/
606 int (*vfs_sync)(struct mount *mp, int waitfor, vfs_context_t context);
618 int (*vfs_vget)(struct mount *mp, ino64_t ino, struct vnode **vpp, vfs_context_t context);
633 int (*vfs_fhtovp)(struct mount *mp, int fhlen, unsigned char *fhp, struct vnode **vpp,
683 int (*vfs_setattr)(struct mount *mp, struct vfs_attr *, vfs_context_t context);
746 @param callback Function which takes a mount and arbitrary passed-in "arg," and returns one of VFS_RETURNED_DONE or VFS_CLAIMED_DONE: end
751 int vfs_iterate(int, int (*)(struct mount *, void *), void *);
764 @abstract Retrieve mount flags.
773 @abstract Set flags on a mount.
774 @discussion Sets mount flags to the bitwise "OR" of their current value and the specified bits. Often
775 used by a filesystem as part of the mount process.
784 @abstract Clear flags on a mount.
785 @discussion Sets mount flags to the bitwise "AND" of their current value and the complement of the specified bits.
811 @abstract Determine if a mount update is in progress.
813 @return Nonzero if a mount update is in progress, 0 otherwise.
838 @discussion This is an unsynchronized snapshot of the mount state. It should only be called
839 if the mount is known to be valid, e.g. there are known to be live files on that volume.
994 @abstract Get filesystem-private mount data.
995 @discussion A filesystem generally has an internal mount structure which it attaches to the VFS-level mount structure
1004 @abstract Set filesystem-private mount data.
1005 @discussion A filesystem generally has an internal mount structure which it attaches to the VFS-level mount structure
1027 @abstract Update cached filesystem status information in the VFS mount structure.
1052 @discussion Get filesystem name; this refers to the filesystem type of which a mount is an instantiation,
1062 @abstract Get the block size of the device underlying a mount.
1100 in a shared manner. If a mount is dead,
1103 A successful vfs_busy() must be followed by a vfs_unbusy() to release the lock on the mount.
1113 @discussion A successful vfs_busy() must be followed by a vfs_unbusy() to release the lock on the mount.
1121 @abstract Generate a unique filesystem ID for a mount and store it in the mount structure.
1123 called as part of file-system specific mount code (i.e. through VFS_MOUNT).
1127 void vfs_getnewfsid(struct mount *);
1131 @abstract Given a filesystem ID, look up a mount structure.
1152 @param flags MNT_FORCE: forcibly invalidate files open on the mount (though in-flight I/O operations
1182 void * vfs_mntlabel(mount_t mp); /* Safe to cast to "struct label*"; returns "void*" to limit dependence of mount.h on security headers. */
1235 with a read-write lock held on the mount point; in the VTC_REPLACE case, the
1292 int mount(const char *, const char *, int, void *);