summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpluknet <pluknet@FreeBSD.org>2013-01-24 23:11:51 +0000
committerpluknet <pluknet@FreeBSD.org>2013-01-24 23:11:51 +0000
commit5c0ad3a1ac036eea63e5d7f65b8412fa92be7b98 (patch)
treef49ca8978fdbdad2b25e175dc3f84cc235ca1c35
parentaaba5893d6e94f40dc4807577fdcf9941a3696e8 (diff)
downloadFreeBSD-src-5c0ad3a1ac036eea63e5d7f65b8412fa92be7b98.zip
FreeBSD-src-5c0ad3a1ac036eea63e5d7f65b8412fa92be7b98.tar.gz
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
-rw-r--r--share/man/man9/VFS_SET.96
-rw-r--r--sys/sys/mount.h5
2 files changed, 7 insertions, 4 deletions
diff --git a/share/man/man9/VFS_SET.9 b/share/man/man9/VFS_SET.9
index 12038c8..c8e93b5 100644
--- a/share/man/man9/VFS_SET.9
+++ b/share/man/man9/VFS_SET.9
@@ -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,
diff --git a/sys/sys/mount.h b/sys/sys/mount.h
index 992227c..bbbc569 100644
--- a/sys/sys/mount.h
+++ b/sys/sys/mount.h
@@ -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;
OpenPOWER on IntegriCloud