From 8c0ef77e9a1ba735c0fba896d1faec952e927d8b Mon Sep 17 00:00:00 2001 From: Derrick Brashear Date: Thu, 15 May 2003 15:29:07 +0000 Subject: [PATCH] STABLE12-bos-new-config-option-20021210 FIXES 1224 based on patch from nneul@umr.edu but including the switch (cherry picked from commit 69cb63ef545b4c8dc4e3b307b474ade4951d9691) --- acconfig.h | 1 + acinclude.m4 | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/acconfig.h b/acconfig.h index 679dd81ad..c976a2b14 100644 --- a/acconfig.h +++ b/acconfig.h @@ -26,6 +26,7 @@ static /**/const char *const rcsid[] = { (char *)rcsid, "\100(#)" msg } #undef BITMAP_LATER #undef BOS_RESTRICTED_MODE +#undef BOS_NEW_CONFIG #undef FAST_RESTART #undef FULL_LISTVOL_SWITCH diff --git a/acinclude.m4 b/acinclude.m4 index abbbaf8af..1eb61d0a0 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -9,7 +9,7 @@ AC_DEFUN(OPENAFS_CONFIGURE_COMMON,[ AC_CANONICAL_HOST SRCDIR_PARENT=`pwd` -#BOZO_SAVE_CORES BOS_RESTRICTED_MODE BOS_NEW_CONFIG pam sia +#BOZO_SAVE_CORES pam sia AC_ARG_WITH(afs-sysname, [ --with-afs-sysname=sys use sys for the afs sysname] ) @@ -21,6 +21,8 @@ AC_ARG_ENABLE( afsdb, [ --disable-afsdb disable AFSDB RR support],, enable_afsdb="yes") AC_ARG_ENABLE( bos-restricted-mode, [ --enable-bos-restricted-mode enable bosserver restricted mode which disables certain bosserver functionality],, enable_bos_restricted_mode="no") +AC_ARG_ENABLE( bos-new-config, +[ --enable-bos-new-config enable bosserver pickup of BosConfig.new on restarts],, enable_bos_new_config="no") AC_ARG_ENABLE( namei-fileserver, [ --enable-namei-fileserver force compilation of namei fileserver in preference to inode fileserver],, enable_namei_fileserver="no") AC_ARG_ENABLE( fast-restart, @@ -576,6 +578,10 @@ if test "$enable_bos_restricted_mode" = "yes"; then AC_DEFINE(BOS_RESTRICTED_MODE, 1, [define if you want to want bos restricted mode]) fi +if test "$enable_bos_new_config" = "yes"; then + AC_DEFINE(BOS_NEW_CONFIG, 1, [define if you want to enable automatic renaming of BosConfig.new to BosConfig at startup]) +fi + if test "$enable_namei_fileserver" = "yes"; then AC_DEFINE(AFS_NAMEI_ENV, 1, [define if you want to want namei fileserver]) fi -- 2.39.5