diff options
author | alfred <alfred@FreeBSD.org> | 2000-09-21 15:55:55 +0000 |
---|---|---|
committer | alfred <alfred@FreeBSD.org> | 2000-09-21 15:55:55 +0000 |
commit | 3ddda6b56245c075d3ac3999c22c2752d727692d (patch) | |
tree | dc6914f378dfd5a8716b63418cabd5433f793d00 /sys | |
parent | 8723cf3500d346f3236ca20ab704516857dc1f4b (diff) | |
download | FreeBSD-src-3ddda6b56245c075d3ac3999c22c2752d727692d.zip FreeBSD-src-3ddda6b56245c075d3ac3999c22c2752d727692d.tar.gz |
comment vfs_export functions, requested by: eivind
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/vfs_export.c | 13 | ||||
-rw-r--r-- | sys/kern/vfs_subr.c | 13 |
2 files changed, 24 insertions, 2 deletions
diff --git a/sys/kern/vfs_export.c b/sys/kern/vfs_export.c index d7298e6..f7ebe82 100644 --- a/sys/kern/vfs_export.c +++ b/sys/kern/vfs_export.c @@ -2335,6 +2335,12 @@ vfs_free_addrlist(nep) } } +/* + * High level function to manipulate export options on a mount point + * and the passed in netexport. + * Struct export_args *argp is the variable used to twiddle options, + * the structure is described in sys/mount.h + */ int vfs_export(mp, nep, argp) struct mount *mp; @@ -2364,7 +2370,6 @@ vfs_export(mp, nep, argp) return (0); } - /* * Set the publicly exported filesystem (WebNFS). Currently, only * one public filesystem is possible in the spec (RFC 2054 and 2055) @@ -2445,6 +2450,12 @@ vfs_setpublicfs(mp, nep, argp) return (0); } +/* + * Used by the filesystems to determine if a given network address + * (passed in 'nam') is present in thier exports list, returns a pointer + * to struct netcred so that the filesystem can examine it for + * access rights (read/write/etc). + */ struct netcred * vfs_export_lookup(mp, nep, nam) register struct mount *mp; diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c index d7298e6..f7ebe82 100644 --- a/sys/kern/vfs_subr.c +++ b/sys/kern/vfs_subr.c @@ -2335,6 +2335,12 @@ vfs_free_addrlist(nep) } } +/* + * High level function to manipulate export options on a mount point + * and the passed in netexport. + * Struct export_args *argp is the variable used to twiddle options, + * the structure is described in sys/mount.h + */ int vfs_export(mp, nep, argp) struct mount *mp; @@ -2364,7 +2370,6 @@ vfs_export(mp, nep, argp) return (0); } - /* * Set the publicly exported filesystem (WebNFS). Currently, only * one public filesystem is possible in the spec (RFC 2054 and 2055) @@ -2445,6 +2450,12 @@ vfs_setpublicfs(mp, nep, argp) return (0); } +/* + * Used by the filesystems to determine if a given network address + * (passed in 'nam') is present in thier exports list, returns a pointer + * to struct netcred so that the filesystem can examine it for + * access rights (read/write/etc). + */ struct netcred * vfs_export_lookup(mp, nep, nam) register struct mount *mp; |