Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

vfs_mount(9) [debian man page]

VFS_MOUNT(9)						   BSD Kernel Developer's Manual					      VFS_MOUNT(9)

NAME
vfs_mount -- generic file system mount function SYNOPSIS
#include <sys/param.h> #include <sys/mount.h> int vfs_mount(struct thread *td, const char *fstype, char *fspath, int fsflags, void *fsdata); DESCRIPTION
The vfs_mount() function handles the generic portion of mounting a file system, and calls the file system specific mount function after veri- fying its parameters and setting up the structures expected by the underlying mount code. vfs_mount() is called directly by the mount(2) system call. Its arguments are: td The thread responsible for this call. fstype The type of file system being mounted. fspath The path to the mount point of the file system. fsflags Flags controlling the mount. See mount(2) for details. MNT_EXPORTED, MNT_NOSUID, MNT_UPDATE, MNT_RELOAD, MNT_FORCE, MNT_ASYNC, MNT_SYNCHRONOUS, MNT_UNION, MNT_NOATIME, MNT_SNAPSHOT, MNT_NOCLUSTERR, MNT_NOCLUSTERW, MNT_IGNORE, MNT_UNION, MNT_NOSYMFOLLOW fsdata File system specific data structure. It is in userspace when passed to vfs_mount() and is left untouched when passed to file sys- tem's mount(). RETURN VALUES
A 0 value is returned on success. ERRORS
[ENAMETOOLONG] The fs type or the mount point path is too long or any individual path component is too long. [EPERM] Permission denied. There are a number of reason this can occur ranging from the user not having permission to mount a file system to the securelevel being to high to load the fstype module. [EINVAL] Invalid operation (ex: trying to update a non mount-point). [ENOENT] The mount point does not exist (from namei()). [ELOOP] The mount point is a muddle of links (from namei()). [EOPNOTSUPP] The operation is not supported (ex: reloading a r/w file system). [EBUSY] The mount point is busy or is not really a mount point (on update). [ENOTDIR] The mount point is not a directory. [ENODEV] The kernel linker was unable to load the specified fstype or was unable to find the specified fstype module. Other errors can be returned by the file system's mount() and you should check the specific file system for details. Also this call relies on a large number of other kernel services whose errors it returns so this list may not be exhaustive. SEE ALSO
mount(2), mount(8) vfs.usermount AUTHORS
This manual page was written by Chad David <davidc@acns.ab.ca>. BSD
November 26, 2004 BSD

Check Out this Related Man Page

MOUNT.NFS(8)                                                  System Manager's Manual                                                 MOUNT.NFS(8)

NAME
mount.nfs, mount.nfs4 - mount a Network File System SYNOPSIS
mount.nfs remotetarget dir [-rvVwfnsh ] [-o options] DESCRIPTION
mount.nfs is a part of nfs(5) utilities package, which provides NFS client functionality. mount.nfs is meant to be used by the mount(8) command for mounting NFS shares. This subcommand, however, can also be used as a standalone command with limited functionality. remotetarget is a server share usually in the form of servername:/path/to/share. dir is the directory on which the file system is to be mounted. Under Linux 2.6.32 and later kernel versions, mount.nfs can mount all NFS file system versions. Under earlier Linux kernel versions, mount.nfs4 must be used for mounting NFSv4 file systems while mount.nfs must be used for NFSv3 and v2. OPTIONS
-r Mount file system readonly. -v Be verbose. -V Print version. -w Mount file system read-write. -f Fake mount. Don't actually call the mount system call. -n Do not update /etc/mtab. By default, an entry is created in /etc/mtab for every mounted file system. Use this option to skip making an entry. -s Tolerate sloppy mount options rather than fail. -h Print help message. nfsoptions Refer to nfs(5) or mount(8) manual pages. NOTE
For further information please refer nfs(5) and mount(8) manual pages. FILES
/etc/fstab file system table /etc/mtab table of mounted file systems SEE ALSO
nfs(5), mount(8), AUTHOR
Amit Gud <agud@redhat.com> 5 Jun 2006 MOUNT.NFS(8)
Man Page