svn commit: r245894 - in head: share/man/man9 sys/sys
Sergey Kandaurov
pluknet at FreeBSD.org
Thu Jan 24 23:11:52 UTC 2013
Author: pluknet
Date: Thu Jan 24 23:11:51 2013
New Revision: 245894
URL: http://svnweb.freebsd.org/changeset/base/245894
Log:
Update and clarify comments regarding VFS op table initialization
in the man page and its header counterpart.
Submitted by: Christoph Mallon <christoph.mallon at gmx.de> (initial version)
Reviewed and further improved by: bde (previous version)
All bugs are: mine
Modified:
head/share/man/man9/VFS_SET.9
head/sys/sys/mount.h
Modified: head/share/man/man9/VFS_SET.9
==============================================================================
--- head/share/man/man9/VFS_SET.9 Thu Jan 24 20:47:37 2013 (r245893)
+++ head/share/man/man9/VFS_SET.9 Thu Jan 24 23:11:51 2013 (r245894)
@@ -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,
Modified: head/sys/sys/mount.h
==============================================================================
--- head/sys/sys/mount.h Thu Jan 24 20:47:37 2013 (r245893)
+++ head/sys/sys/mount.h Thu Jan 24 23:11:51 2013 (r245894)
@@ -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;
More information about the svn-src-all
mailing list