From owner-freebsd-fs@FreeBSD.ORG Mon Mar 15 16:09:38 2004 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5792E16A4CE for ; Mon, 15 Mar 2004 16:09:38 -0800 (PST) Received: from smtp3.andrew.cmu.edu (SMTP3.andrew.cmu.edu [128.2.10.83]) by mx1.FreeBSD.org (Postfix) with ESMTP id DEAA743D1D for ; Mon, 15 Mar 2004 16:09:37 -0800 (PST) (envelope-from cg2v@andrew.cmu.edu) Received: from SPHINX.andrew.cmu.edu (SPHINX.andrew.cmu.edu [128.2.121.9]) (user=cg2v mech=GSSAPI (0 bits)) by smtp3.andrew.cmu.edu (8.12.10/8.12.10) with ESMTP id i2G09aIe009913 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NOT); Mon, 15 Mar 2004 19:09:38 -0500 Date: Mon, 15 Mar 2004 19:09:34 -0500 From: Chaskiel M Grundman To: openafs-devel@openafs.org Message-ID: <15300000.1079395774@sphinx.andrew.cmu.edu> In-Reply-To: References: Originator-Info: login-id=cg2v; server=cyrus.andrew.cmu.edu; token_authority=postmaster@andrew.cmu.edu X-Mailer: Mulberry/3.0.3 (Linux/x86) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline cc: freebsd-fs@freebsd.org Subject: Re: [OpenAFS-devel] OpenAFS for FreeBSD 5.2 patch X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Mar 2004 00:09:38 -0000 --On Tuesday, March 16, 2004 00:24:52 +0100 Adriaan de Groot wrote: > On Mon, 15 Mar 2004, Garance A Drosihn wrote: >> At 12:24 AM -0500 3/10/04, Garrett Wollman wrote: > The main problem will probably be threading libraries (ie. the total lack > of them in openafs for your particular platform). Since OpenAFS uses its > own thread library, that poses an additional portability hurdle for the > system. Sparc should be supported, as afs already works on both sparc-solaris and sparc-linux. There may need to be some assembler syntax and makefile hackery to get it building. > The word "abomination" was used in conjunction with it recently. > In particular, FreeBSD-amd64 can't do OpenAFS because of the threading > stuff. A port to any of the pthreads libs would be a large task but > probably needs to be done sometime. It's not pthreads, but I do have an alternative to the existing lwp implementation that should be a whole lot more portable that what we have now. It makes use of the getcontext/makecontext/setcontext functions from unix98. The files are in the afs request tracker. (https://grand.central.org/rt/Ticket/Display.html?id=1280). You will want lwp_susv2.c, lwp_private.h and lwp-opaque.patch. Apply lwp-opaque.patch, drop in lwp_private.h, and replace lwp.c using lwp_susv2.c. Lastly, edit the makefile and remove references to process.[coS] for the relevant platform(s). If you do use this code, please reply to the ticket with any successes/failures you encounter. If this code gets tested, it's likely to be folded into an actual release someday. E