LVM2 ./WHATS_NEW ./configure ./configure.in da ...
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: jbrassow at sourceware.org 2012-02-29 21:15:35
Modified files:
. : WHATS_NEW configure configure.in
daemons/cmirrord: cluster.c
lib/misc : configure.h.in
Log message:
Allow cluster mirrors to handle the absence of the checkpoint lib (libSaCkpt).
The OpenAIS checkpoint library is going away; therefore, cmirrord must operate without it. The algorithms the handle the timing of when to send a checkpoint, the determination of what to send, and which ongoing cluster requests are relevent with respect to the checkpoints are unaffected. We need only replace the functions that actually perform the storing/transmitting and retrieving/receiving of the checkpoint data. Rather than store the checkpoint data in an OpenAIS checkpoint file, we simply transmit it along with the message that notifies the incoming node that the checkpoint is ready.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/WHATS_NEW.diff?cvsroot=lvm2&r1=1.2325&r2=1.2326
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/configure.diff?cvsroot=lvm2&r1=1.174&r2=1.175
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/configure.in.diff?cvsroot=lvm2&r1=1.189&r2=1.190
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/daemons/cmirrord/cluster.c.diff?cvsroot=lvm2&r1=1.17&r2=1.18
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/misc/configure.h.in.diff?cvsroot=lvm2&r1=1.38&r2=1.39
WHATS_NEW +1 -0
@@ -1,5 +1,6 @@ Version 2.02.94 - ==================================== + Allow cluster mirrors to handle the absence of the checkpoint lib (libSaCkpt). Revert free of allocated segtype in init segment error path (2.02.89). Test dm_hash_insert() failures in filter-persistent.c and fid_add_mda(). Ensure clvmd message is always \0 terminated after read.
configure +12 -21
@@ -8198,6 +8198,10 @@ pkg_config_init fi + +$as_echo "#define CMIRROR_HAS_CHECKPOINT 1" >>confdefs.h + + pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SACKPT" >&5 $as_echo_n "checking for SACKPT... " >&6; }
@@ -8254,40 +8258,27 @@ # Put the nasty error message in config.log where it belongs echo "$SACKPT_PKG_ERRORS" >&5 - as_fn_error $? "Package requirements (libSaCkpt) were not met: - -$SACKPT_PKG_ERRORS - -Consider adjusting the PKG_CONFIG_PATH environment variable if you -installed software in a non-standard prefix. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no libSaCkpt, compiling without it" >&5 +$as_echo "no libSaCkpt, compiling without it" >&6; } -Alternatively, you may set the environment variables SACKPT_CFLAGS -and SACKPT_LIBS to avoid the need to call pkg-config. -See the pkg-config man page for more details." "$LINENO" 5 +$as_echo "#define CMIRROR_HAS_CHECKPOINT 0" >>confdefs.h elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it -is in your PATH or set the PKG_CONFIG environment variable to the full -path to pkg-config. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no libSaCkpt, compiling without it" >&5 +$as_echo "no libSaCkpt, compiling without it" >&6; } -Alternatively, you may set the environment variables SACKPT_CFLAGS -and SACKPT_LIBS to avoid the need to call pkg-config. -See the pkg-config man page for more details. - -To get pkg-config, see <http://pkg-config.freedesktop.org/>. -See \`config.log' for more details" "$LINENO" 5; } +$as_echo "#define CMIRROR_HAS_CHECKPOINT 0" >>confdefs.h else SACKPT_CFLAGS=$pkg_cv_SACKPT_CFLAGS SACKPT_LIBS=$pkg_cv_SACKPT_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } - + HAVE_SACKPT=yes fi + if test x$HAVE_CPG != xyes; then pkg_failed=no
configure.in +6 -1
@@ -740,7 +740,12 @@ if test x$PKGCONFIG_INIT != x1; then pkg_config_init fi - PKG_CHECK_MODULES(SACKPT, libSaCkpt) + + AC_DEFINE([CMIRROR_HAS_CHECKPOINT], 1, [Define to 1 to include libSaCkpt.]) + PKG_CHECK_MODULES(SACKPT, libSaCkpt, [HAVE_SACKPT=yes], + [AC_MSG_RESULT([no libSaCkpt, compiling without it]) + AC_DEFINE([CMIRROR_HAS_CHECKPOINT], 0, [Define to 0 to exclude libSaCkpt.])]) + if test x$HAVE_CPG != xyes; then PKG_CHECK_MODULES(CPG, libcpg) fi
daemons/cmirrord/cluster.c +115 -22
289 lines not on this page · raw message
lib/misc/configure.h.in +3 -0
@@ -15,6 +15,9 @@ /* Path to cmirrord pidfile. */ #undef CMIRRORD_PIDFILE +/* Define to 0 to exclude libSaCkpt. */ +#undef CMIRROR_HAS_CHECKPOINT + /* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP systems. This function is required for `alloca.c' support on those systems. */