[SM-Commit] GIT changes to master grimoire by Vlad Glagolev (dd8bb9b3569e5be39f49fee17a647cda850168f1)

Vlad Glagolev scm at sourcemage.org
Wed Jun 22 21:03:23 EDT 2011


GIT changes to master grimoire by Vlad Glagolev <stealth at sourcemage.org>:

 net/nfs-utils/exportfs.patch |   21 +++++++++++++++++++++
 1 files changed, 21 insertions(+)

New commits:
commit dd8bb9b3569e5be39f49fee17a647cda850168f1
Author: Vlad Glagolev <stealth at sourcemage.org>
Commit: Vlad Glagolev <stealth at sourcemage.org>

    nfs-utils: actually add the patch

diff --git a/net/nfs-utils/exportfs.patch b/net/nfs-utils/exportfs.patch
new file mode 100644
index 0000000..845ea15
--- /dev/null
+++ b/net/nfs-utils/exportfs.patch
@@ -0,0 +1,21 @@
+--- support/nfs/exports.c.orig
++++ support/nfs/exports.c
+@@ -142,9 +142,14 @@  getexportent(int fromkernel, int fromexports)
+ 		return NULL;
+ 	}
+ 	first = 0;
+-		
+-	/* Check for default options */
+-	if (exp[0] == '-') {
++
++	/*
++	 * Check for default options.  The kernel will never have default
++	 * options in /proc/fs/nfs/exports, however due to the initial '-' in
++	 * the -test-client- string from the test export we have to check that
++	 * we're not reading from the kernel.
++	 */
++	if (exp[0] == '-' && !fromkernel) {
+ 		if (parseopts(exp + 1, &def_ee, 0, &has_default_subtree_opts) < 0)
+ 			return NULL;
+ 		
+


More information about the SM-Commit mailing list