Update and clarify comments regarding VFS op table initialization
in the man page and its header counterpart. Submitted by: Christoph Mallon <christoph.mallon@gmx.de> (initial version) Reviewed and further improved by: bde (previous version) All bugs are: mine
This commit is contained in:
parent
6d12634cba
commit
6cd3574c06
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=245894
@ -26,7 +26,7 @@
|
||||
.\"
|
||||
.\" $FreeBSD$
|
||||
.\"
|
||||
.Dd January 22, 2012
|
||||
.Dd January 25, 2012
|
||||
.Dt VFS_SET 9
|
||||
.Os
|
||||
.Sh NAME
|
||||
@ -84,7 +84,9 @@ sysctl is set to
|
||||
.Sh PSEUDOCODE
|
||||
.Bd -literal
|
||||
/*
|
||||
* fill in the ones we use, and use the vfs_std for the rest.
|
||||
* Fill in the ones we redefine. The unused fields will be
|
||||
* automatically initialized by pointers to vfs_std* functions
|
||||
* during file system registration.
|
||||
*/
|
||||
static struct vfsops myfs_vfsops = {
|
||||
.vfs_mount = myfs_mount,
|
||||
|
@ -762,8 +762,9 @@ extern struct nfs_public nfs_pub;
|
||||
|
||||
/*
|
||||
* Declarations for these vfs default operations are located in
|
||||
* kern/vfs_default.c, they should be used instead of making "dummy"
|
||||
* functions or casting entries in the VFS op table to "enopnotsupp()".
|
||||
* kern/vfs_default.c. They will be automatically used to replace
|
||||
* null entries in VFS ops tables when registering a new filesystem
|
||||
* type in the global table.
|
||||
*/
|
||||
vfs_root_t vfs_stdroot;
|
||||
vfs_quotactl_t vfs_stdquotactl;
|
||||
|
Loading…
Reference in New Issue
Block a user