]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
Change default from subtree_check to no_subtree_check
authorNeil Brown <neilb@suse.de>
Thu, 22 Feb 2007 05:21:22 +0000 (16:21 +1100)
committerNeil Brown <neilb@suse.de>
Thu, 22 Feb 2007 05:21:22 +0000 (16:21 +1100)
subtree_check causes more problems than it is worth,
and it isn't worth much in the first place..

Signed-off-by: Neil Brown <neilb@suse.de>
support/nfs/exports.c

index 31b38c3735b7be7776fac5cefd9e31cfa3775a53..60cfe48d6f58038f294c4fb2d4c33739c85859dd 100644 (file)
@@ -32,7 +32,7 @@
 #include "xio.h"
 
 #define EXPORT_DEFAULT_FLAGS   \
-  (NFSEXP_READONLY|NFSEXP_ROOTSQUASH|NFSEXP_GATHERED_WRITES)
+  (NFSEXP_READONLY|NFSEXP_ROOTSQUASH|NFSEXP_GATHERED_WRITES|NFSEXP_NOSUBTREECHECK)
 
 int export_errno;
 
@@ -537,8 +537,8 @@ bad_option:
 out:
        if (warn && !had_subtree_opt)
                xlog(L_WARNING, "%s [%d]: Neither 'subtree_check' or 'no_subtree_check' specified for export \"%s:%s\".\n"
-                               "  Assuming default behaviour ('subtree_check').\n"
-                               "  NOTE: this default will change with nfs-utils version 1.1.0\n",
+                               "  Assuming default behaviour ('no_subtree_check').\n"
+                               "  NOTE: this default has changed since nfs-utils version 1.0.x\n",
 
                                flname, flline,
                                ep->e_hostname, ep->e_path);