Copyright (c) 1996 Doug Rabson All rights reserved. This program is free software. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in...
NAMEVFS_MOUNT - mount a file system
SYNOPSISIn sys/param.h In sys/mount.h In sys/vnode.h Ft int Fn VFS_MOUNT struct mount *mp
DESCRIPTIONThe Fn VFS_MOUNT macro mounts a file system into the system's namespace or updates the attributes of an already mounted file system.
The arguments it expects are:
- Fa mp
- Structure representing the file system.
The Fn VFS_MOUNT macro is called both to mount new file systems and to change the attributes of an existing file system. If the MNT_UPDATE flag is set in Fa mp->mnt_flag then the file system should update its internal state from the value of Fa mp->mnt_flag . This can be used, for instance, to convert a read-only file system to read-write. It is also used by mountd(8) to update the NFS export information for the file system.
If the MNT_UPDATE flag is not specified, then this is a newly mounted file system. The file system code should allocate and initialize any private data needed to represent the file system (it can use the Fa mp->mnt_data field to store this information).