|
NAMEvfsconf —
vfs configuration information
SYNOPSIS#include <sys/param.h>
#include <sys/mount.h>
int
int
int
DESCRIPTIONEach file system type known to the kernel has a vfsconf structure that contains the information required to create a new mount of that file systems type.struct vfsconf { struct vfsops *vfc_vfsops; /* file system operations vector */ char vfc_name[MFSNAMELEN]; /* file system type name */ int vfc_typenum; /* historic file system type number */ int vfc_refcount; /* number mounted of this type */ int vfc_flags; /* permanent flags */ struct vfsconf *vfc_next; /* next in list */ }; When a new file system is mounted,
mount(2)
does a lookup of the vfsconf structure by its name,
and if it is not already registered, attempts to load a kernel module for
it. The file system operations for the new mount point are taken from
vfc_vfsops, and mnt_vfc in the
mount structure is made to point directly at the
vfsconf structure for the file system type. The file
system type number is taken from vfc_typenum which was
assigned in
RETURN VALUESvfs_register () returns 0 if successful; otherwise,
EEXIST is returned indicating that the file system
type has already been registered.
SEE ALSOmount(2), vfs_rootmountalloc(9), VFS_SET(9)AUTHORSThis manual page was written by Chad David <davidc@acns.ab.ca>.
Visit the GSP FreeBSD Man Page Interface. |