From 8b5faafec60ae1fb625572671ff85873252a7e6c Mon Sep 17 00:00:00 2001 From: Derrick Brashear Date: Sat, 16 Aug 2008 22:37:39 +0000 Subject: [PATCH] DEVEL15-namei-by-default-on-sol10-20080816 LICENSE IPL10 default to namei, not inode, on solaris 10 except by request (cherry picked from commit 03982bd54839f81cdc691ad83e946fac8f8789b7) --- acinclude.m4 | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/acinclude.m4 b/acinclude.m4 index dc9cbf302a..dc8cd412b3 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -50,7 +50,7 @@ AC_ARG_ENABLE([namei-fileserver], [force compilation of namei fileserver in preference to inode fileserver])], , - [enable_namei_fileserver="no"]) + [enable_namei_fileserver="default"]) AC_ARG_ENABLE([supergroups], [AS_HELP_STRING([--enable-supergroups], [enable support for nested pts groups])], @@ -1337,6 +1337,21 @@ fi if test "$enable_namei_fileserver" = "yes"; then AC_DEFINE(AFS_NAMEI_ENV, 1, [define if you want to want namei fileserver]) +else + if test "$enable_namei_fileserver" = "default"; then + case $host in + *-solaris2.10*) + AC_MSG_WARN(Some Solaris 10 versions are not safe with the inode fileserver. Forcing namei. Override with --disable-namei-fileserver) + AC_DEFINE(AFS_NAMEI_ENV, 1, [define if you want to want namei fileserver]) + ;; + *-solaris2.11*) + AC_MSG_WARN(Solaris 11 versions are not safe with the inode fileserver. Forcing namei. Override with --disable-namei-fileserver) + AC_DEFINE(AFS_NAMEI_ENV, 1, [define if you want to want namei fileserver]) + ;; + *) + ;; + esac + fi fi if test "$enable_afsdb" = "yes"; then