From MAILER-DAEMON Tue Sep 07 12:44:03 2004
Received: from mailman by lists.gnu.org with archive (Exim 4.33)
	id 1C4j4d-0003MZ-98
	for mharc-cfengine-develop@gnu.org; Tue, 07 Sep 2004 12:44:03 -0400
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33)
	id 1C4j4a-0003K5-V0
	for cfengine-develop@nongnu.org; Tue, 07 Sep 2004 12:44:01 -0400
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33)
	id 1C4j4Z-0003Ip-JR
	for cfengine-develop@nongnu.org; Tue, 07 Sep 2004 12:44:00 -0400
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.33) id 1C4j4Z-0003If-Hj
	for cfengine-develop@nongnu.org; Tue, 07 Sep 2004 12:43:59 -0400
Received: from [130.233.228.93] (helo=smtp-3.hut.fi)
	by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168)
	(Exim 4.34) id 1C4iyz-0000NC-D8
	for cfengine-develop@nongnu.org; Tue, 07 Sep 2004 12:38:13 -0400
Received: from [192.168.1.7] (shakti.tky.hut.fi [130.233.21.52])
	by smtp-3.hut.fi (8.12.10/8.12.10) with ESMTP id i87GcBLV005093
	for <cfengine-develop@nongnu.org>; Tue, 7 Sep 2004 19:38:11 +0300
Mime-Version: 1.0 (Apple Message framework v619)
To: cfengine-develop@nongnu.org
Message-Id: <63697644-00EC-11D9-8E4C-000A9566C776@cc.hut.fi>
Content-Type: multipart/mixed; boundary=Apple-Mail-4-303809490
From: Tuomas Jormola <tjormola@cc.hut.fi>
Date: Tue, 7 Sep 2004 19:38:46 +0300
X-Mailer: Apple Mail (2.619)
X-RAVMilter-Version: 8.4.3(snapshot 20030212) (smtp-3.hut.fi)
Subject: [Cfengine-develop] [PATCH] Compile with large file support when
	available 
X-BeenThere: cfengine-develop@nongnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Cfengine developers <cfengine-develop.nongnu.org>
List-Unsubscribe: <http://lists.nongnu.org/mailman/listinfo/cfengine-develop>, 
	<mailto:cfengine-develop-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/cfengine-develop>
List-Post: <mailto:cfengine-develop@nongnu.org>
List-Help: <mailto:cfengine-develop-request@nongnu.org?subject=help>
List-Subscribe: <http://lists.nongnu.org/mailman/listinfo/cfengine-develop>,
	<mailto:cfengine-develop-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Tue, 07 Sep 2004 16:44:01 -0000


--Apple-Mail-4-303809490
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
	charset=US-ASCII;
	format=flowed

Hi,

Currently for instance on Linux/glibc platform cfengine doesn't support 
files of over 2 gigabytes in size. For example an lstat call in code 
implementing the files action generates an error when it encounters a 
large file. This can be fixed with a simple recompilation with some 
special compilation flags (eg. -D_LARGEFILE_SOURCE 
-D_FILE_OFFSET_BITS=64 on Solaris 8 and -D_FILE_OFFSET_BITS=64 on 
Linux). A portable way to query these flags is described in 
<URL:http://www.suse.de/~aj/linux_lfs.html>. Based on this I created a 
patch against configure.ac of cfengine-2.1.10. Now cfengine is 
automatically compiled with large file support if it's available. 
Please apply the patch.

br,

--Apple-Mail-4-303809490
Content-Transfer-Encoding: 7bit
Content-Type: application/octet-stream; x-unix-mode=0644;
	name="cfengine-2.1.10-lfs.diff"
Content-Disposition: attachment;
	filename=cfengine-2.1.10-lfs.diff

--- cfengine-2.1.10.orig/configure.ac	2004-08-12 01:50:40.000000000 +0300
+++ cfengine-2.1.10/configure.ac	2004-09-07 19:10:31.000000000 +0300
@@ -70,6 +70,7 @@
 AC_PATH_PROG(DVIPS, dvips, false, $PATH:$prefix/bin:/usr/bin:/usr/local/bin:/sw/bin)
 AC_PATH_PROG(MAKEINFO, makeinfo, false, $PATH:$prefix/bin:/usr/bin:/usr/local/bin:/sw/bin)
 AC_PATH_PROG(PS2PDF, ps2pdf, false, $PATH:$prefix/bin:/usr/bin:/usr/local/bin:/sw/bin)
+AC_PATH_PROG(GETCONF, getconf, false, $PATH:$prefix/bin:/usr/bin:/usr/local/bin:/sw/bin)
 
 dnl ######################################################################
 dnl Checks for libraries.
@@ -405,6 +406,23 @@
 AC_MSG_RESULT([$rtry])
 
 dnl #######################################################################
+dnl Large File Support
+dnl #######################################################################
+
+lfsresult=no
+AC_MSG_CHECKING(whether to compile with large file support)
+if test "$GETCONF" != "false"; then
+	lfscflags=`$GETCONF LFS_CFLAGS 2>/dev/null`
+	if test -n "$lfscflags"; then
+		CFLAGS="$CFLAGS $lfscflags"
+		lfsresult=yes
+	fi
+	lfsldflags=`$GETCONF LFS_LDFLAGS 2>/dev/null`
+	test -n "$lfsldflags" && LDFLAGS="$LDFLAGS $lfsldflags"
+fi
+AC_MSG_RESULT([$lfsresult])
+
+dnl #######################################################################
 dnl Handle DCE + threading stuff
 dnl #######################################################################
 

--Apple-Mail-4-303809490
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
	charset=US-ASCII;
	format=flowed


-- 
Tuomas Jormola <tjormola@cc.hut.fi>
--Apple-Mail-4-303809490--




From MAILER-DAEMON Tue Sep 07 16:40:26 2004
Received: from mailman by lists.gnu.org with archive (Exim 4.33)
	id 1C4mlN-00050X-Nx
	for mharc-cfengine-develop@gnu.org; Tue, 07 Sep 2004 16:40:25 -0400
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33)
	id 1C4mlM-0004z0-8j
	for cfengine-develop@nongnu.org; Tue, 07 Sep 2004 16:40:24 -0400
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33)
	id 1C4mlJ-0004wv-TD
	for cfengine-develop@nongnu.org; Tue, 07 Sep 2004 16:40:23 -0400
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.33) id 1C4mlJ-0004ws-Py
	for cfengine-develop@nongnu.org; Tue, 07 Sep 2004 16:40:21 -0400
Received: from [128.39.89.10] (helo=nexus.iu.hio.no)
	by monty-python.gnu.org with esmtp (Exim 4.34) id 1C4mg2-0008RW-Hx
	for cfengine-develop@nongnu.org; Tue, 07 Sep 2004 16:34:55 -0400
Received: from iu.hio.no (nexus.iu.hio.no [128.39.89.10])
	by nexus.iu.hio.no (8.13.0/8.13.0) with ESMTP id i87KYsj5014669;
	Tue, 7 Sep 2004 22:34:58 +0200 (MEST)
Message-Id: <200409072034.i87KYsj5014669@nexus.iu.hio.no>
Date: Tue, 7 Sep 2004 22:34:54 +0200 (MEST)
From: Mark.Burgess@iu.hio.no
Subject: Re: [Cfengine-develop] [PATCH] Compile with large file support
	when available 
To: tjormola@cc.hut.fi
In-Reply-To: <63697644-00EC-11D9-8E4C-000A9566C776@cc.hut.fi>
MIME-Version: 1.0
Content-Type: TEXT/plain; charset=us-ascii
X-SpamAssassin-Score: 0.339 NO_REAL_NAME
X-Scanned-By: MIMEDefang 2.41
Cc: cfengine-develop@nongnu.org
X-BeenThere: cfengine-develop@nongnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Cfengine developers <cfengine-develop.nongnu.org>
List-Unsubscribe: <http://lists.nongnu.org/mailman/listinfo/cfengine-develop>, 
	<mailto:cfengine-develop-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/cfengine-develop>
List-Post: <mailto:cfengine-develop@nongnu.org>
List-Help: <mailto:cfengine-develop-request@nongnu.org?subject=help>
List-Subscribe: <http://lists.nongnu.org/mailman/listinfo/cfengine-develop>,
	<mailto:cfengine-develop-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Tue, 07 Sep 2004 20:40:24 -0000


Thanks for your patch!

On  7 Sep, Tuomas Jormola wrote:
> Hi,
> 
> Currently for instance on Linux/glibc platform cfengine doesn't support 
> files of over 2 gigabytes in size. For example an lstat call in code 
> implementing the files action generates an error when it encounters a 
> large file. This can be fixed with a simple recompilation with some 
> special compilation flags (eg. -D_LARGEFILE_SOURCE 
> -D_FILE_OFFSET_BITS=64 on Solaris 8 and -D_FILE_OFFSET_BITS=64 on 
> Linux). A portable way to query these flags is described in 
> <URL:http://www.suse.de/~aj/linux_lfs.html>. Based on this I created a 
> patch against configure.ac of cfengine-2.1.10. Now cfengine is 
> automatically compiled with large file support if it's available. 
> Please apply the patch.
> 
> br,



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Work: +47 22453272            Email:  Mark.Burgess@iu.hio.no
Fax : +47 22453205            WWW  :  http://www.iu.hio.no/~mark
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~




From MAILER-DAEMON Mon Sep 13 13:33:47 2004
Received: from mailman by lists.gnu.org with archive (Exim 4.33)
	id 1C6ui3-0008N2-Fi
	for mharc-cfengine-develop@gnu.org; Mon, 13 Sep 2004 13:33:47 -0400
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33)
	id 1C6uhz-0008LU-8p
	for cfengine-develop@nongnu.org; Mon, 13 Sep 2004 13:33:43 -0400
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33)
	id 1C6uhy-0008KX-BE
	for cfengine-develop@nongnu.org; Mon, 13 Sep 2004 13:33:42 -0400
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.33) id 1C6uhy-0008K4-77
	for cfengine-develop@nongnu.org; Mon, 13 Sep 2004 13:33:42 -0400
Received: from [198.70.184.137] (helo=smtp.poss.com)
	by monty-python.gnu.org with esmtp (Exim 4.34) id 1C6uc4-0002O7-TP
	for cfengine-develop@nongnu.org; Mon, 13 Sep 2004 13:27:37 -0400
Received: from [198.70.184.239] (dhcp-239.poss.com [198.70.184.239])
	by endeavor.poss.com
	(iPlanet Messaging Server 5.2 HotFix 1.16 (built May 14 2003))
	with ESMTPA id <0I3Z00I4ZPTU7R@endeavor.poss.com> for
	cfengine-develop@nongnu.org; Mon, 13 Sep 2004 13:27:31 -0400 (EDT)
Date: Mon, 13 Sep 2004 13:27:36 -0400
From: Christian Pearce <pearcec@perfectorder.com>
To: cfengine-develop@nongnu.org
Message-id: <1095096456.5579.109.camel@dhcp-239.poss.com>
Organization: Perfect Order, Inc.
MIME-version: 1.0
X-Mailer: Ximian Evolution 1.4.6 (1.4.6-2)
Content-type: text/plain
Content-transfer-encoding: 7BIT
Subject: [Cfengine-develop] fam in cfservd?
X-BeenThere: cfengine-develop@nongnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Cfengine developers <cfengine-develop.nongnu.org>
List-Unsubscribe: <http://lists.nongnu.org/mailman/listinfo/cfengine-develop>, 
	<mailto:cfengine-develop-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/cfengine-develop>
List-Post: <mailto:cfengine-develop@nongnu.org>
List-Help: <mailto:cfengine-develop-request@nongnu.org?subject=help>
List-Subscribe: <http://lists.nongnu.org/mailman/listinfo/cfengine-develop>,
	<mailto:cfengine-develop-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Mon, 13 Sep 2004 17:33:43 -0000

http://oss.sgi.com/projects/fam/

Has anyone given thought to including this?  I think the idea would be
if a file changed, run cfagent|cfexecd.  Or you could optionally have
classes defined.  

cfservd.conf -

fam:
        /etc/aliases
                define=run_newaliases

cfagent.conf -

shellcommands:
        run_newaliases
                $(newaliases)

This could make cfengine a little more real-time, which out the overhead
of running everything minutes.

Thoughts?
-- 
Christian Pearce
http://www.commnav.com
http://www.perfectorder.com





