From owner-freebsd-fs@FreeBSD.ORG Tue Mar 9 16:26:46 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 8535416A4CE for ; Tue, 9 Mar 2004 16:26:46 -0800 (PST) Received: from smtp3.server.rpi.edu (smtp3.server.rpi.edu [128.113.2.3]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2F62143D1F for ; Tue, 9 Mar 2004 16:26:46 -0800 (PST) (envelope-from drosih@rpi.edu) Received: from [128.113.24.47] (gilead.netel.rpi.edu [128.113.24.47]) by smtp3.server.rpi.edu (8.12.8/8.12.8) with ESMTP id i2A0QjqG028739; Tue, 9 Mar 2004 19:26:45 -0500 Mime-Version: 1.0 X-Sender: drosih@mail.rpi.edu Message-Id: In-Reply-To: <20040309220623.853182095F@citi.umich.edu> References: <20040309220623.853182095F@citi.umich.edu> Date: Tue, 9 Mar 2004 19:26:44 -0500 To: Jim Rees , openafs-devel@openafs.org, freebsd-fs@freebsd.org From: Garance A Drosihn Content-Type: text/plain; charset="us-ascii" ; format="flowed" X-Scanned-By: CanIt (www . canit . ca) 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: Wed, 10 Mar 2004 00:26:46 -0000 At 5:06 PM -0500 3/9/04, Jim Rees wrote: >Here is a patch to OpenAFS that makes the FreeBSD 5.2 client work. >It also breaks the 4.x client. I will commit this to OpenAFS if I >can get it to work on 4.x. > >Garrett Wollman did all the work, I just cleaned it up a bit and >fixed it so it would still build (but not necessarily run) on >OpenBSD and 4.x. > >http://www.citi.umich.edu/u/rees/fbsd.diff I downloaded the latest snapshot of the openafs repository, applied this patch, and: export MAKE=/usr/local/bin/gmake /configure --with-afs-sysname=i386_fbsd_50 --enable-transarc-paths gmake gmake install I then added a few config files in /usr/vice/etc that I'm used to seeing from installations on other platforms. Is there an /etc/rc-type file for what is supposed to happen next? I copied /usr/vice/etc/libafs.ko to /boot/kernel, and typed: kldload libafs.ko /usr/local/sbin/afsd -stat 1200 -dcache 800 -daemons 3 -volumes 70 and the system panic'ed on me right after the AFS cache scan: Versionstring: FreeBSD 5.2-CURRENT #0: Sun Mar 7 00:53:31 EST 2004 root@santropez.netel.rpi.edu:/usr/obj/usr/src/sys/Dual-Athlon2k Panicstring: mtx_lock() of spin mutex (null) @ /usr/src/sys/kern/vfs_subr.c:19 This is on a dual-CPU system. Might there be problems with that, or did I just screw up the AFS startup? -- Garance Alistair Drosehn = gad@gilead.netel.rpi.edu Senior Systems Programmer or gad@freebsd.org Rensselaer Polytechnic Institute or drosih@rpi.edu