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)
This commit is contained in:
Derrick Brashear 2008-08-16 22:37:39 +00:00
parent 2ca7bc4dbc
commit 8b5faafec6

View File

@ -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