summaryrefslogtreecommitdiffstats
path: root/sys/kern
diff options
context:
space:
mode:
authoralfred <alfred@FreeBSD.org>2000-09-21 15:55:55 +0000
committeralfred <alfred@FreeBSD.org>2000-09-21 15:55:55 +0000
commit3ddda6b56245c075d3ac3999c22c2752d727692d (patch)
treedc6914f378dfd5a8716b63418cabd5433f793d00 /sys/kern
parent8723cf3500d346f3236ca20ab704516857dc1f4b (diff)
downloadFreeBSD-src-3ddda6b56245c075d3ac3999c22c2752d727692d.zip
FreeBSD-src-3ddda6b56245c075d3ac3999c22c2752d727692d.tar.gz
comment vfs_export functions, requested by: eivind
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/vfs_export.c13
-rw-r--r--sys/kern/vfs_subr.c13
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;
OpenPOWER on IntegriCloud