From owner-freebsd-fs@FreeBSD.ORG Wed Jun 18 12:29:14 2008 Return-Path: Delivered-To: freebsd-fs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E5BD61065670 for ; Wed, 18 Jun 2008 12:29:14 +0000 (UTC) (envelope-from gdt@ir.bbn.com) Received: from fnord.ir.bbn.com (fnord.ir.bbn.com [192.1.100.210]) by mx1.freebsd.org (Postfix) with ESMTP id 890EF8FC16 for ; Wed, 18 Jun 2008 12:29:14 +0000 (UTC) (envelope-from gdt@ir.bbn.com) Received: by fnord.ir.bbn.com (Postfix, from userid 10853) id CCD0252EA; Wed, 18 Jun 2008 08:13:48 -0400 (EDT) From: Greg Troxel To: Edwin Groothuis References: <20080617222227.GA87804@k7.mavetju> X-Hashcash: 1:20:080618:edwin@mavetju.org::uZnazoz3duM/CWP+:000000000000000000000000000000000000000000000mwU X-Hashcash: 1:20:080618:jhs@berklix.org::EXmMNjXt6DhYluah:0011Np X-Hashcash: 1:20:080618:freebsd-fs@freebsd.org::SNHF1IdWsz13EG/Z:00000000000000000000000000000000000000013zT Date: Wed, 18 Jun 2008 08:13:48 -0400 In-Reply-To: <20080617222227.GA87804@k7.mavetju> (Edwin Groothuis's message of "Wed, 18 Jun 2008 08:22:27 +1000") Message-ID: User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/22.1 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-fs@FreeBSD.org, Julian Stacey Subject: Re: CFS Cryptographic file system. X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Jun 2008 12:29:15 -0000 I have been running cfs for a very long time (15 years?), most recently on NetBSD, but I've run it on 4.2BSD, SunOS 4, Linux, FreeBSD (2.1 to 4.x), and NetBSD (1.3ish to present). Your patch looks like it is adjusting for rpcgen differences, which makes sense. I've also had two other problems, but my memory is a bit fuzzy. on sparc, I needed to change something to avoid miscompilation; it worked on i386. It might be the patch appended. on i386, with gcc 4.1.2, it doesn't work (zero-length files?). With binaries built with gcc 3.3 on NetBSD 3, it works (even running on NetBSD 4.0). You may want to look at http://cvsweb.netbsd.org/bsdweb.cgi/pkgsrc/security/cfs/ It might be time to roll a lot of these patches in and have a new tarball released. $NetBSD: patch-ae,v 1.1 2001/06/09 04:32:14 jlam Exp $ --- cfs_adm.c.orig Mon Dec 25 01:41:30 1995 +++ cfs_adm.c Fri Jun 8 21:14:35 2001 @@ -43,7 +43,7 @@ cfsstat * admproc_attach_2(ap,rp) cfs_attachargs *ap; - SR *rp; + SR rp; { static cfsstat ret; int i; @@ -156,7 +156,7 @@ cfsstat * admproc_detach_2(ap,rp) cfs_detachargs *ap; - SR *rp; + SR rp; { static cfsstat ret; int i;