Rechercher une page de manuel
vfs_getvfs.9freebsd
Langue: en
Version: 308011 (debian - 07/07/09)
Section: 9 (Appels noyau Linux)
BSD mandoc
NAME
vfs_getvfs - returns a mount point given its file system identifierSYNOPSIS
In sys/param.h In sys/mount.h Ft struct mount * Fn vfs_getvfs fsid_t *fsidDESCRIPTION
The Fn vfs_getvfs function returns the mount point structure for a file system given its file system identifier. The file system ID should have been allocated by calling vfs_getnewfsid9; otherwise, it will not be found.A major user of Fn vfs_getvfs is NFS, which uses the Vt fsid as part of file handles in order to determine the file system a given RPC is for. If Fn vfs_getvfs fails to find the mount point related to Fa fsid , the file system is considered stale.
RETURN VALUES
If Fa fsid is found, the mount point for the ID is returned; otherwise, NULL is returned.PSEUDOCODE
if ((mp = vfs_getvfs(&fhp->fh_fsid)) == NULL) { error = ESTALE; goto out; }
SEE ALSO
vfs_getnewfsid9AUTHORS
This manual page was written by An Chad David Aq davidc@acns.ab.ca .Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre