From 5c0ad3a1ac036eea63e5d7f65b8412fa92be7b98 Mon Sep 17 00:00:00 2001 From: pluknet Date: Thu, 24 Jan 2013 23:11:51 +0000 Subject: Update and clarify comments regarding VFS op table initialization in the man page and its header counterpart. Submitted by: Christoph Mallon (initial version) Reviewed and further improved by: bde (previous version) All bugs are: mine --- share/man/man9/VFS_SET.9 | 6 ++++-- sys/sys/mount.h | 5 +++-- 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; -- cgit v1.1