From owner-freebsd-afs@FreeBSD.ORG Sun Feb 17 22:47:59 2008 Return-Path: Delivered-To: afs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ABB9416A41A; Sun, 17 Feb 2008 22:47:59 +0000 (UTC) (envelope-from kaj@kth.se) Received: from smtp-2.sys.kth.se (smtp-2.sys.kth.se [130.237.32.160]) by mx1.freebsd.org (Postfix) with ESMTP id 6006713C442; Sun, 17 Feb 2008 22:47:59 +0000 (UTC) (envelope-from kaj@kth.se) Received: from localhost (localhost [127.0.0.1]) by smtp-2.sys.kth.se (Postfix) with ESMTP id 0B44A14D7DC; Sun, 17 Feb 2008 23:21:32 +0100 (CET) X-Virus-Scanned: by amavisd-new at kth.se Received: from smtp-2.sys.kth.se ([127.0.0.1]) by localhost (smtp-2.sys.kth.se [127.0.0.1]) (amavisd-new, port 10024) with LMTP id xUGoWyTjgoUc; Sun, 17 Feb 2008 23:21:27 +0100 (CET) Received: from [10.11.100.123] (c80-216-5-33.bredband.comhem.se [80.216.5.33]) by smtp-2.sys.kth.se (Postfix) with ESMTP id 94BBF14CEA7; Sun, 17 Feb 2008 23:21:27 +0100 (CET) From: Rasmus Kaj To: Robert Watson In-Reply-To: <20080216035658.W93919@fledge.watson.org> References: <20080216035658.W93919@fledge.watson.org> Content-Type: text/plain; charset=ISO-8859-1 Date: Sun, 17 Feb 2008 23:21:22 +0100 Message-Id: <1203286882.16414.3.camel@heterodyne.kaj> Mime-Version: 1.0 X-Mailer: Evolution 2.12.1 Content-Transfer-Encoding: 8bit Cc: afs@FreeBSD.org, arla-drinkers@stacken.kth.se Subject: Re: Patches to get Arla running on FreeBSD 8-CURRENT X-BeenThere: freebsd-afs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: The Andrew File System and FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Feb 2008 22:47:59 -0000 lör 2008-02-16 klockan 04:12 +0000 skrev Robert Watson: Hi Robert and Arla folks! > I've spent the evening getting Arla (checked out of anoncvs) [...] Everyone who got Arla out of anoncvs, please update! The anoncvs repo has been out of sync since october 1, 2007. Now it is updated -- and updating itself when new commits happen -- again. Sorry for the inconvenience! -- Rasmus Kaj From owner-freebsd-afs@FreeBSD.ORG Mon Feb 18 01:29:35 2008 Return-Path: Delivered-To: afs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A7F6E16A418 for ; Mon, 18 Feb 2008 01:29:35 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from cyrus.watson.org (cyrus.watson.org [209.31.154.42]) by mx1.freebsd.org (Postfix) with ESMTP id 790EC13C442 for ; Mon, 18 Feb 2008 01:29:35 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from fledge.watson.org (fledge.watson.org [209.31.154.41]) by cyrus.watson.org (Postfix) with ESMTP id 2DF9046B7E; Sun, 17 Feb 2008 20:29:35 -0500 (EST) Date: Mon, 18 Feb 2008 01:29:35 +0000 (GMT) From: Robert Watson X-X-Sender: robert@fledge.watson.org To: Rasmus Kaj In-Reply-To: <1203286882.16414.3.camel@heterodyne.kaj> Message-ID: <20080218012608.V96329@fledge.watson.org> References: <20080216035658.W93919@fledge.watson.org> <1203286882.16414.3.camel@heterodyne.kaj> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: afs@FreeBSD.org, arla-drinkers@stacken.kth.se Subject: Re: Patches to get Arla running on FreeBSD 8-CURRENT X-BeenThere: freebsd-afs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: The Andrew File System and FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Feb 2008 01:29:35 -0000 On Sun, 17 Feb 2008, Rasmus Kaj wrote: >> I've spent the evening getting Arla (checked out of anoncvs) [...] > > Everyone who got Arla out of anoncvs, please update! > > The anoncvs repo has been out of sync since october 1, 2007. Now it is > updated -- and updating itself when new commits happen -- again. > > Sorry for the inconvenience! Indeed, all the missing changes from October through December are now there in anoncvs. Looks like the appl/lib build order fix I needed is already there, but most of the other changes haven't been bumped into by anyone else yet. I needed the one further attached change to correct a build problem resulting from the more recent work in CVS. With the updated parts, I now have Arla running on FreeBSD 8-CURRENT again. Robert N M Watson Computer Laboratory University of Cambridge http://perforce.freebsd.org/chv.cgi?CH=135612 Change 135612 by rwatson@rwatson_cinnamon_coda on 2008/02/18 01:04:20 New build fix for NetBSDism in Arla. Affected files ... .. //depot/user/rwatson/arla/porting/nnpfs/bsd/nnpfs/nnpfs_locl.h#4 edit Differences ... ==== //depot/user/rwatson/arla/porting/nnpfs/bsd/nnpfs/nnpfs_locl.h#4 (text+ko) ==== @@ -118,7 +118,7 @@ #ifdef HAVE_SYS_ATTR_H #include #endif -#if __NetBSD_Version__ >= 399001900 /* 3.99.19 */ +#if defined(__NetBSD_Version__) && __NetBSD_Version__ >= 399001900 /* 3.99.19 */ #define HAVE_SYS_KAUTH_H #endif #ifdef HAVE_SYS_KAUTH_H From owner-freebsd-afs@FreeBSD.ORG Fri Feb 22 13:18:50 2008 Return-Path: Delivered-To: afs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 36AB516A400 for ; Fri, 22 Feb 2008 13:18:50 +0000 (UTC) (envelope-from alec-keyword-freebsd.org.a6e2e4@SetFilePointer.com) Received: from hamlet.setfilepointer.com (hamlet.SetFilePointer.com [63.224.10.2]) by mx1.freebsd.org (Postfix) with SMTP id A772B13C45D for ; Fri, 22 Feb 2008 13:18:49 +0000 (UTC) (envelope-from alec-keyword-freebsd.org.a6e2e4@SetFilePointer.com) Received: (qmail 28517 invoked by uid 4250); 22 Feb 2008 06:52:07 -0600 Received: by hamlet.setfilepointer.com (tmda-sendmail, from uid 4250); Fri, 22 Feb 2008 06:52:07 -0600 Date: Fri, 22 Feb 2008 06:52:07 -0600 To: Robert Watson Message-ID: <20080222125207.GD38141@hamlet.setfilepointer.com> References: <20080216035658.W93919@fledge.watson.org> <1203286882.16414.3.camel@heterodyne.kaj> <20080218012608.V96329@fledge.watson.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="zbGR4y+acU1DwHSi" Content-Disposition: inline In-Reply-To: <20080218012608.V96329@fledge.watson.org> User-Agent: Mutt/1.4.2.3i X-Delivery-Agent: TMDA/1.1.12 (Macallan) From: Alec Kloss X-Primary-Address: alec@SetFilePointer.com Cc: afs@FreeBSD.org, arla-drinkers@stacken.kth.se, Rasmus Kaj Subject: Re: Patches to get Arla running on FreeBSD 8-CURRENT X-BeenThere: freebsd-afs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: The Andrew File System and FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Feb 2008 13:18:50 -0000 --zbGR4y+acU1DwHSi Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Robert, I've been playing with your patches, etc. on 8-CURRENT. I've been having to tweak up include/config.h a little so I wonder if you missed a few autoconf things... but more important, running "ls /afs" results in: nnpfs: cdev: 0, syscall: 339 Fatal trap 12: page fault while in kernel mode cpuid =3D 0; apic id =3D 00 fault virtual address =3D 0x26c fault code =3D supervisor read, page not present instruction pointer =3D 0x20:0xc2a7f1fc stack pointer =3D 0x28:0xcd412a40 frame pointer =3D 0x28:0xcd412a5c code segment =3D base 0x0, limit 0xfffff, type 0x1b =3D DPL 0, pres 1, def32 1, gran 1 processor eflags =3D interrupt enabled, resume, IOPL =3D 0 current process =3D 4822 (ls) [thread pid 4822 tid 100176 ] Stopped at nnpfs_getattr_common+0xc: movl 0x26c(%eax),%eax db> bt Tracing pid 4822 tid 100176 td 0xc2783440 nnpfs_getattr_common(c297b110,cd4= 12ab4,c24f1700,c2783440,cd412aa0,...) at nnpfs_getattr_common+0xc nnpfs_getattr(cd412aa0,0,c0b10208,cd412b48,cd412b28,...) at nnpfs_getattr+0= x33 VOP_GETATTR_APV(c2a854a0,cd412aa0,c0bd91a0,c297b110,cd412ab4,...) at VOP_GE= TATTR_APV+0xa5 vn_stat(c297b110,cd412b48,c24f1700,0,c2783440,...) at vn_stat+0x49 kern_stat(c2783440,8113138,0,cd412c18,c0c5d140,...) at kern_stat+0x81 stat(c2783440,cd412cfc,8,cd412d38,c0ba1e60,...) at stat+0x2f syscall(cd412d38) at syscall+0x2b3 Xint0x80_syscall() at Xint0x80_syscall+0x20 --- syscall (188, FreeBSD ELF32, stat), eip =3D 0x281a3acb, esp =3D 0xbfbfe= 54c, ebp =3D 0xbfbfe5d8 --- db> If I'me reading this (and nnpfs_vnodeops_common.c) right, this is probably a NULL value for (xn or perhaps vap) in *vap =3D xn->attr; (line 765) Any thoughts? Or tips on what I can do to help? I don't have gdb ready to go yet---but I probably can this weekend. =20 --=20 Alec Kloss alec@SetFilePointer.com IM: angryspamhater@yahoo.com PGP key at http://pgp.mit.edu:11371/pks/lookup?op=3Dget&search=3D0xA241980E "No Bunny!" -- Simon, from Frisky Dingo --zbGR4y+acU1DwHSi Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQFHvsV32s33paJBmA4RAhS+AKCGGVaX7yYCtgS45SLR82iNCtmsJgCfewW6 ekGKNp6v2Teut05Q/UVmgD0= =uCRo -----END PGP SIGNATURE----- --zbGR4y+acU1DwHSi-- From owner-freebsd-afs@FreeBSD.ORG Fri Feb 22 13:50:52 2008 Return-Path: Delivered-To: afs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 13C6416A405 for ; Fri, 22 Feb 2008 13:50:52 +0000 (UTC) (envelope-from alec-keyword-freebsd.org.a6e2e4@SetFilePointer.com) Received: from hamlet.setfilepointer.com (hamlet.SetFilePointer.com [63.224.10.2]) by mx1.freebsd.org (Postfix) with SMTP id 8DA7613C467 for ; Fri, 22 Feb 2008 13:50:50 +0000 (UTC) (envelope-from alec-keyword-freebsd.org.a6e2e4@SetFilePointer.com) Received: (qmail 42973 invoked by uid 4250); 22 Feb 2008 07:50:50 -0600 Received: by hamlet.setfilepointer.com (tmda-sendmail, from uid 4250); Fri, 22 Feb 2008 07:50:50 -0600 Date: Fri, 22 Feb 2008 07:50:50 -0600 To: Robert Watson Message-ID: <20080222135050.GE38141@hamlet.setfilepointer.com> References: <20080216035658.W93919@fledge.watson.org> <1203286882.16414.3.camel@heterodyne.kaj> <20080218012608.V96329@fledge.watson.org> <20080222125207.GD38141@hamlet.setfilepointer.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="imjhCm/Pyz7Rq5F2" Content-Disposition: inline In-Reply-To: <20080222125207.GD38141@hamlet.setfilepointer.com> User-Agent: Mutt/1.4.2.3i X-Delivery-Agent: TMDA/1.1.12 (Macallan) From: Alec Kloss X-Primary-Address: alec@SetFilePointer.com Cc: afs@FreeBSD.org, arla-drinkers@stacken.kth.se, Rasmus Kaj Subject: Re: Patches to get Arla running on FreeBSD 8-CURRENT X-BeenThere: freebsd-afs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: The Andrew File System and FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Feb 2008 13:50:52 -0000 --imjhCm/Pyz7Rq5F2 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2008-02-22 06:52, wrote: > Robert, I've been playing with your patches, etc. on 8-CURRENT. [chop] I take it back... boldly adding printf all over says: vp->v_mount is null in the NNPFS_FROM_VNODE macro. Adding if (vp->v_mount) return EDOOFUS does: ls: /afs: Programming error Attempting to umount /afs then panics most likely for the same reason (v_mount is null): Fatal trap 12: page fault while in kernel mode cpuid =3D 0; apic id =3D 00 fault virtual address =3D 0x26c fault code =3D supervisor read, page not present instruction pointer =3D 0x20:0xc2a26dfc stack pointer =3D 0x28:0xcd49bb00 frame pointer =3D 0x28:0xcd49bb2c code segment =3D base 0x0, limit 0xfffff, type 0x1b =3D DPL 0, pres 1, def32 1, gran 1 processor eflags =3D interrupt enabled, resume, IOPL =3D 0 current process =3D 5754 (umount) [thread pid 5754 tid 100206 ] Stopped at nnpfs_inactive_common+0xc: movl 0x26c(%eax),%eax db> bt Tracing pid 5754 tid 100206 td 0xc298e220 nnpfs_inactive_common(c2a58440,c298e220,cd49bb54,c0a68485,cd49bb6c,...) at nnpfs_inactive_common+0xc nnpfs_inactive(cd49bb6c,c2a584c8,c2a58440,c2a584c8,cd49bb84,...) at nnpfs_inactive+0x1e VOP_INACTIVE_APV(c2a2b4a0,cd49bb6c,c0afa47c,8fd,c0bd93e0,...) at VOP_INACTIVE_APV+0xa5 vinactive(c2a584c8,0,c0afa47c,86d,c253b880,...) at vinactive+0x91 vrele(c2a58440,c2a2ba70,0,c2a2800b,0,...) at vrele+0x18b nnpfs_free_all_nodes(c2a2b6e0,0,1,c2a58330,c2a2b6e0,...) at nnpfs_free_all_nodes+0xa5 nnpfs_unmount_common(c231329c,8000000,0,c298e220,cd49bc54,...) at nnpfs_unmount_common+0x4e nnpfs_unmount(c231329c,8000000,c298e220,4f0,4da,...) at nnpfs_unmount+0x49 dounmount(c231329c,8000000,c298e220,482,8,...) at dounmount+0x426 unmount(c298e220,cd49bcfc,8,3d90d,c0ba0ed0,...) at unmount+0x2e0 syscall(cd49bd38) at syscall+0x2b3 Xint0x80_syscall() at Xint0x80_syscall+0x20 --- syscall (22, FreeBSD ELF32, unmount), eip =3D 0x280c62db, esp =3D 0xbfbfe4dc, ebp =3D 0xbfbfe598 --- db> --=20 Alec Kloss alec@SetFilePointer.com IM: angryspamhater@yahoo.com PGP key at http://pgp.mit.edu:11371/pks/lookup?op=3Dget&search=3D0xA241980E "No Bunny!" -- Simon, from Frisky Dingo --imjhCm/Pyz7Rq5F2 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQFHvtM62s33paJBmA4RAlNPAJwOqsMhld3HDPHGaqQpXb8tZhy6hACfa3Rk BHMYeEKqk0KZw5332RlzI0c= =yRdD -----END PGP SIGNATURE----- --imjhCm/Pyz7Rq5F2-- From owner-freebsd-afs@FreeBSD.ORG Sat Feb 23 09:28:27 2008 Return-Path: Delivered-To: afs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BB00216A400 for ; Sat, 23 Feb 2008 09:28:27 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from cyrus.watson.org (cyrus.watson.org [209.31.154.42]) by mx1.freebsd.org (Postfix) with ESMTP id 845A713C4D5 for ; Sat, 23 Feb 2008 09:28:27 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from fledge.watson.org (fledge.watson.org [209.31.154.41]) by cyrus.watson.org (Postfix) with ESMTP id B1D1A46B5C; Sat, 23 Feb 2008 04:28:26 -0500 (EST) Date: Sat, 23 Feb 2008 09:28:26 +0000 (GMT) From: Robert Watson X-X-Sender: robert@fledge.watson.org To: Alec Kloss In-Reply-To: <20080222125207.GD38141@hamlet.setfilepointer.com> Message-ID: <20080223092516.O23969@fledge.watson.org> References: <20080216035658.W93919@fledge.watson.org> <1203286882.16414.3.camel@heterodyne.kaj> <20080218012608.V96329@fledge.watson.org> <20080222125207.GD38141@hamlet.setfilepointer.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: afs@FreeBSD.org, arla-drinkers@stacken.kth.se, Rasmus Kaj Subject: Re: Patches to get Arla running on FreeBSD 8-CURRENT X-BeenThere: freebsd-afs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: The Andrew File System and FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Feb 2008 09:28:27 -0000 On Fri, 22 Feb 2008, Alec Kloss wrote: > Robert, I've been playing with your patches, etc. on 8-CURRENT. I've been > having to tweak up include/config.h a little so I wonder if you missed a few > autoconf things... but more important, running "ls /afs" results in: This is a symptom of a failure to insmntque a vnode after creating it, a new requirement for vnodes in FreeBSD 7.x/8.x; previously, vnodes were automatically inserted on the mount vnode queue and had their mount pointer set up during getnewvnode(), but closing certain races motivated this change. The reason I know this is that I remember adding two calls to insmntque to nnpfs in my patches, so there are three possibilities: (1) I missed a call to getnewvnode, (2) the patches I posted didn't include that change, or (3) the patch didn't apply properly. I'll investigate this later today once I've given my FOSDEM talk; chances are it's an issue with the patch. Robert N M Watson Computer Laboratory University of Cambridge > > nnpfs: cdev: 0, syscall: 339 > > > Fatal trap 12: page fault while in kernel mode > cpuid = 0; apic id = 00 > fault virtual address = 0x26c > fault code = supervisor read, page not present > instruction pointer = 0x20:0xc2a7f1fc > stack pointer = 0x28:0xcd412a40 > frame pointer = 0x28:0xcd412a5c > code segment = base 0x0, limit 0xfffff, type 0x1b > = DPL 0, pres 1, def32 1, gran 1 > processor eflags = interrupt enabled, resume, IOPL = 0 > current process = 4822 (ls) > [thread pid 4822 tid 100176 ] > Stopped at nnpfs_getattr_common+0xc: movl > 0x26c(%eax),%eax > db> bt > Tracing pid 4822 tid 100176 td 0xc2783440 nnpfs_getattr_common(c297b110,cd412ab4,c24f1700,c2783440,cd412aa0,...) at nnpfs_getattr_common+0xc > nnpfs_getattr(cd412aa0,0,c0b10208,cd412b48,cd412b28,...) at nnpfs_getattr+0x33 > VOP_GETATTR_APV(c2a854a0,cd412aa0,c0bd91a0,c297b110,cd412ab4,...) at VOP_GETATTR_APV+0xa5 > vn_stat(c297b110,cd412b48,c24f1700,0,c2783440,...) at vn_stat+0x49 > kern_stat(c2783440,8113138,0,cd412c18,c0c5d140,...) at kern_stat+0x81 > stat(c2783440,cd412cfc,8,cd412d38,c0ba1e60,...) at stat+0x2f > syscall(cd412d38) at syscall+0x2b3 > Xint0x80_syscall() at Xint0x80_syscall+0x20 > --- syscall (188, FreeBSD ELF32, stat), eip = 0x281a3acb, esp = 0xbfbfe54c, ebp = 0xbfbfe5d8 --- > db> > > If I'me reading this (and nnpfs_vnodeops_common.c) right, this is > probably a NULL value for (xn or perhaps vap) in > > *vap = xn->attr; > > (line 765) Any thoughts? Or tips on what I can do to help? I > don't have gdb ready to go yet---but I probably can this weekend. > > -- > Alec Kloss alec@SetFilePointer.com IM: angryspamhater@yahoo.com > PGP key at http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xA241980E > "No Bunny!" -- Simon, from Frisky Dingo > From owner-freebsd-afs@FreeBSD.ORG Sat Feb 23 10:56:12 2008 Return-Path: Delivered-To: afs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 903F816A403 for ; Sat, 23 Feb 2008 10:56:12 +0000 (UTC) (envelope-from alec-keyword-arla.4d43de@SetFilePointer.com) Received: from hamlet.setfilepointer.com (hamlet.SetFilePointer.com [63.224.10.2]) by mx1.freebsd.org (Postfix) with SMTP id 1EB3713C46A for ; Sat, 23 Feb 2008 10:56:06 +0000 (UTC) (envelope-from alec-keyword-arla.4d43de@SetFilePointer.com) Received: (qmail 50553 invoked by uid 4250); 23 Feb 2008 04:29:25 -0600 Received: by hamlet.setfilepointer.com (tmda-sendmail, from uid 4250); Sat, 23 Feb 2008 04:29:25 -0600 Date: Sat, 23 Feb 2008 04:29:22 -0600 To: Robert Watson Message-ID: <20080223102922.GF38141@hamlet.setfilepointer.com> References: <20080216035658.W93919@fledge.watson.org> <1203286882.16414.3.camel@heterodyne.kaj> <20080218012608.V96329@fledge.watson.org> <20080222125207.GD38141@hamlet.setfilepointer.com> <20080223092516.O23969@fledge.watson.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="l+goss899txtYvYf" Content-Disposition: inline In-Reply-To: <20080223092516.O23969@fledge.watson.org> User-Agent: Mutt/1.4.2.3i X-Delivery-Agent: TMDA/1.1.12 (Macallan) From: Alec Kloss X-Primary-Address: alec@SetFilePointer.com Cc: afs@FreeBSD.org, arla-drinkers@stacken.kth.se, Rasmus Kaj Subject: Re: Patches to get Arla running on FreeBSD 8-CURRENT X-BeenThere: freebsd-afs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: The Andrew File System and FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Feb 2008 10:56:12 -0000 --l+goss899txtYvYf Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2008-02-23 09:28, Robert Watson wrote: > This is a symptom of a failure to insmntque a vnode after creating it, a= =20 > new requirement for vnodes in FreeBSD 7.x/8.x; previously, vnodes were=20 > automatically inserted on the mount vnode queue and had their mount point= er=20 > set up during getnewvnode(), but closing certain races motivated this=20 > change. The reason I know this is that I remember adding two calls to=20 > insmntque to nnpfs in my patches, so there are three possibilities: (1) I= =20 > missed a call to getnewvnode, (2) the patches I posted didn't include tha= t=20 > change, or (3) the patch didn't apply properly. I'll investigate this=20 > later today once I've given my FOSDEM talk; chances are it's an issue wit= h=20 > the patch. Check. The issue is with configure, etc. include/config.h doesn't have #define HAVE_KERNEL_INSMNTQUE 1=20 in it. I'll add it to my list of configure-related issues. Recompiling now... --=20 Alec Kloss alec@SetFilePointer.com IM: angryspamhater@yahoo.com PGP key at http://pgp.mit.edu:11371/pks/lookup?op=3Dget&search=3D0xA241980E "No Bunny!" -- Simon, from Frisky Dingo --l+goss899txtYvYf Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQFHv/WC2s33paJBmA4RArvhAJ9srfAdjwn2/ITjYMFeqnmXR9YgJwCfTruj B8fJV7rO33eRp3QfX6xIDSo= =BoEH -----END PGP SIGNATURE----- --l+goss899txtYvYf-- From owner-freebsd-afs@FreeBSD.ORG Sat Feb 23 11:05:50 2008 Return-Path: Delivered-To: afs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C1CB316A400 for ; Sat, 23 Feb 2008 11:05:50 +0000 (UTC) (envelope-from alec-keyword-arla.4d43de@SetFilePointer.com) Received: from hamlet.setfilepointer.com (hamlet.SetFilePointer.com [63.224.10.2]) by mx1.freebsd.org (Postfix) with SMTP id 5C1F913C43E for ; Sat, 23 Feb 2008 11:05:50 +0000 (UTC) (envelope-from alec-keyword-arla.4d43de@SetFilePointer.com) Received: (qmail 59718 invoked by uid 4250); 23 Feb 2008 05:05:49 -0600 Received: by hamlet.setfilepointer.com (tmda-sendmail, from uid 4250); Sat, 23 Feb 2008 05:05:49 -0600 Date: Sat, 23 Feb 2008 05:05:49 -0600 To: Robert Watson Message-ID: <20080223110549.GG38141@hamlet.setfilepointer.com> References: <20080216035658.W93919@fledge.watson.org> <1203286882.16414.3.camel@heterodyne.kaj> <20080218012608.V96329@fledge.watson.org> <20080222125207.GD38141@hamlet.setfilepointer.com> <20080223092516.O23969@fledge.watson.org> <20080223102922.GF38141@hamlet.setfilepointer.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="lHGcFxmlz1yfXmOs" Content-Disposition: inline In-Reply-To: <20080223102922.GF38141@hamlet.setfilepointer.com> User-Agent: Mutt/1.4.2.3i X-Delivery-Agent: TMDA/1.1.12 (Macallan) From: Alec Kloss X-Primary-Address: alec@SetFilePointer.com Cc: afs@FreeBSD.org, arla-drinkers@stacken.kth.se, Rasmus Kaj Subject: Re: Patches to get Arla running on FreeBSD 8-CURRENT X-BeenThere: freebsd-afs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: The Andrew File System and FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Feb 2008 11:05:50 -0000 --lHGcFxmlz1yfXmOs Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2008-02-23 04:29, Alec wrote: >=20 > #define HAVE_KERNEL_INSMNTQUE 1=20 >=20 > in it. I'll add it to my list of configure-related issues. > Recompiling now... >=20 oldothello% uname -a FreeBSD oldothello.setfilepointer.com 8.0-CURRENT FreeBSD 8.0-CURRENT #0: W= ed Feb 20 13:45:22 CST 2008 root@oldothello.setfilepointer.com:/usr/local/o= bj/usr/src/sys/GENERIC i386 oldothello% ls /afs andrew.cmu.edu grand.central.org openafs.org athena.mit.edu hallf.kth.se research.company.com cern.ch isk.kth.se rose-hulman.edu deek.org it.kth.se setfilepointer.com dementia.org md.kth.se stacken.kth.se dev.mit.edu mech.kth.se e.kth.se mekinok.com oldothello% Neat! Heimdal gets tokens correctly, access to private directories works. I'm running the arla test suite now; I'm up to hardlink3 with no problems. I did notice that, when umounting /afs, I get a lock order reversal: lock order reversal: 1st 0xc231329c vfslock (vfslock) @ /usr/src/sys/kern/vfs_mount.c:1242 2nd 0xc2dabaf8 syncer (syncer) @ /usr/src/sys/kern/vfs_subr.c:2156 KDB: stack backtrace: db_trace_self_wrapper(c0af1b78,cd4b3b2c,c07a1a6e,c0af3fc2,c2dabaf8,...) at = db_trace_self_wrapper+0x26 kdb_backtrace(c0af3fc2,c2dabaf8,c0afad01,c0afad01,c0afa47c,...) at kdb_back= trace+0x29 witness_checkorder(c2dabaf8,9,c0afa47c,86c,c0c16cb4,...) at witness_checkor= der+0x6de _lockmgr(c2dabaf8,2002,c2dabb28,c0afa47c,86c,...) at _lockmgr+0x43c vop_stdlock(cd4b3bc4,c0afa47c,c07a1338,2002,c2dabaa0,...) at vop_stdlock+0x= 39 VOP_LOCK1_APV(c0bb0980,cd4b3bc4,84f,cd4b3be4,c2dabb28,...) at VOP_LOCK1_APV= +0xa5 _vn_lock(c2dabaa0,2002,c0afa47c,86c,0,...) at _vn_lock+0xf2 vrele(c2dabaa0,0,c0af9de1,4f0,4da,...) at vrele+0x142 dounmount(c231329c,8000000,c356b000,482,8,...) at dounmount+0x372 unmount(c356b000,cd4b3cfc,8,cd4b3d38,c0ba0ed0,...) at unmount+0x2e0 syscall(cd4b3d38) at syscall+0x2b3 Xint0x80_syscall() at Xint0x80_syscall+0x20 --- syscall (22, FreeBSD ELF32, unmount), eip =3D 0x280c62db, esp =3D 0xbfbfe4ec, ebp =3D 0xbfbfe5a8 --- I see a few other lock order reversals on -CURRENT right now anyway, so I'm not sure if it's cause for concern or even caused by arla. I'm going to move on to trying everything on 7.x. I know there are autoconf/etc. things that need to be fixed. Do you want me to work on that or are you likely to have it done already. =20 I do have a tweaked version of your patch---as I recall it contains just one typo fix---at http://setfilepointer.com/pub/arla/20080218-arla.diff There's also the snapshot of the sources I used: http://setfilepointer.com/pub/arla/arla-20080118.tar.bz2 Assuming I get things working on 7.x, I'll update the port I built later today. :) --=20 Alec Kloss alec@SetFilePointer.com IM: angryspamhater@yahoo.com PGP key at http://pgp.mit.edu:11371/pks/lookup?op=3Dget&search=3D0xA241980E "No Bunny!" -- Simon, from Frisky Dingo --lHGcFxmlz1yfXmOs Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQFHv/4N2s33paJBmA4RAi6LAJ9YEJqJTVrsniYHJSXqobrc74FNmgCfeMEK Z70j7rSLRbPpLavjfbKV4KA= =RDi8 -----END PGP SIGNATURE----- --lHGcFxmlz1yfXmOs-- From owner-freebsd-afs@FreeBSD.ORG Sat Feb 23 16:12:51 2008 Return-Path: Delivered-To: afs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9677016A405 for ; Sat, 23 Feb 2008 16:12:51 +0000 (UTC) (envelope-from alec-keyword-arla.4d43de@SetFilePointer.com) Received: from hamlet.setfilepointer.com (hamlet.SetFilePointer.com [63.224.10.2]) by mx1.freebsd.org (Postfix) with SMTP id 1101B13C469 for ; Sat, 23 Feb 2008 16:12:50 +0000 (UTC) (envelope-from alec-keyword-arla.4d43de@SetFilePointer.com) Received: (qmail 36651 invoked by uid 4250); 23 Feb 2008 10:12:50 -0600 Received: by hamlet.setfilepointer.com (tmda-sendmail, from uid 4250); Sat, 23 Feb 2008 10:12:50 -0600 Date: Sat, 23 Feb 2008 10:12:49 -0600 To: Robert Watson Message-ID: <20080223161249.GH38141@hamlet.setfilepointer.com> References: <20080216035658.W93919@fledge.watson.org> <1203286882.16414.3.camel@heterodyne.kaj> <20080218012608.V96329@fledge.watson.org> <20080222125207.GD38141@hamlet.setfilepointer.com> <20080223092516.O23969@fledge.watson.org> <20080223102922.GF38141@hamlet.setfilepointer.com> <20080223110549.GG38141@hamlet.setfilepointer.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="nFBW6CQlri5Qm8JQ" Content-Disposition: inline In-Reply-To: <20080223110549.GG38141@hamlet.setfilepointer.com> User-Agent: Mutt/1.4.2.3i X-Delivery-Agent: TMDA/1.1.12 (Macallan) From: Alec Kloss X-Primary-Address: alec@SetFilePointer.com Cc: afs@FreeBSD.org, arla-drinkers@stacken.kth.se, Rasmus Kaj Subject: Re: Patches to get Arla running on FreeBSD 8-CURRENT X-BeenThere: freebsd-afs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: The Andrew File System and FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Feb 2008 16:12:51 -0000 --nFBW6CQlri5Qm8JQ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Sorry for the chatter... arla makes me excited. :) I've gotten Robert's patches compiled and running under -CURRENT, RELENG_7, and RELENG_6. A FreeBSD port and FreeBSD packages are available at http://setfilepointer.com/pub/afs/FreeBSD/ All of the heavy lifting is done in the big patch at=20 http://setfilepointer.com/pub/arla/20080223-arla.diff This was generated by taking a current snapshot from arla's CVS, applying Robert's original patch, and then adding a handful of=20 fixes of my own. The jist of my changes are autoconf corrections, and one test for NNPFS_DEBUG_PRIV which is undefined on -CURRENT. There's a general autoconf problem running around that a few tests require -Werror to work correctly some can't have -Werror to work correctly. =20 I've run the "-all -fast" tests which don't cause any major issues on RELENG_7 and -CURRENT, but I do seem to be able to panic 6.x with those tests. More testers and feedback would be appreciated. Can anyone from Arla comment on the chances for incorporating these patches into Arla itself? It'd be nice to have these changes in Arla itself prior to submitting the port to FreeBSD. And, can anyone comment on need for the arla port to include 0.43,=20 which works on FreeBSD 5.x? Robert, thanks so much for your time. I owe you (at least) a beer. =20 --=20 Alec Kloss alec@SetFilePointer.com IM: angryspamhater@yahoo.com PGP key at http://pgp.mit.edu:11371/pks/lookup?op=3Dget&search=3D0xA241980E "No Bunny!" -- Simon, from Frisky Dingo --nFBW6CQlri5Qm8JQ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQFHwEYB2s33paJBmA4RAhsjAJ4xmU6Zes3/ZS6Mt+91RpmD6dU5cQCeO2H8 mVtEmPjt8JtmNGYMLKGKrKw= =mCSW -----END PGP SIGNATURE----- --nFBW6CQlri5Qm8JQ-- From owner-freebsd-afs@FreeBSD.ORG Sat Feb 23 16:21:19 2008 Return-Path: Delivered-To: afs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 857BC16A408 for ; Sat, 23 Feb 2008 16:21:19 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from cyrus.watson.org (cyrus.watson.org [209.31.154.42]) by mx1.freebsd.org (Postfix) with ESMTP id 5DD8D13C461 for ; Sat, 23 Feb 2008 16:21:19 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from fledge.watson.org (fledge.watson.org [209.31.154.41]) by cyrus.watson.org (Postfix) with ESMTP id 970C346B60; Sat, 23 Feb 2008 11:21:18 -0500 (EST) Date: Sat, 23 Feb 2008 16:21:18 +0000 (GMT) From: Robert Watson X-X-Sender: robert@fledge.watson.org To: Alec Kloss In-Reply-To: <20080223161249.GH38141@hamlet.setfilepointer.com> Message-ID: <20080223161816.K45981@fledge.watson.org> References: <20080216035658.W93919@fledge.watson.org> <1203286882.16414.3.camel@heterodyne.kaj> <20080218012608.V96329@fledge.watson.org> <20080222125207.GD38141@hamlet.setfilepointer.com> <20080223092516.O23969@fledge.watson.org> <20080223102922.GF38141@hamlet.setfilepointer.com> <20080223110549.GG38141@hamlet.setfilepointer.com> <20080223161249.GH38141@hamlet.setfilepointer.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: afs@FreeBSD.org, arla-drinkers@stacken.kth.se, Rasmus Kaj Subject: Re: Patches to get Arla running on FreeBSD 8-CURRENT X-BeenThere: freebsd-afs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: The Andrew File System and FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Feb 2008 16:21:19 -0000 On Sat, 23 Feb 2008, Alec Kloss wrote: > All of the heavy lifting is done in the big patch at > > http://setfilepointer.com/pub/arla/20080223-arla.diff > > This was generated by taking a current snapshot from arla's CVS, applying > Robert's original patch, and then adding a handful of fixes of my own. The > jist of my changes are autoconf corrections, and one test for > NNPFS_DEBUG_PRIV which is undefined on -CURRENT. There's a general autoconf > problem running around that a few tests require -Werror to work correctly > some can't have -Werror to work correctly. Sounds great, although PRIV_NNPFS_DEBUG should be defined on the most recent -CURRENT; I added it last week, so if you're running a slightly older -CURRENT, that could be why. I believe I also MFC'd to RELENG_7 but it won't make FreeBSD 7.0. > I've run the "-all -fast" tests which don't cause any major issues on > RELENG_7 and -CURRENT, but I do seem to be able to panic 6.x with those > tests. More testers and feedback would be appreciated. > > Can anyone from Arla comment on the chances for incorporating these patches > into Arla itself? It'd be nice to have these changes in Arla itself prior > to submitting the port to FreeBSD. > > And, can anyone comment on need for the arla port to include 0.43, which > works on FreeBSD 5.x? > > Robert, thanks so much for your time. I owe you (at least) a beer. No problem at all -- this is something I've been meaning to do for years, and I'm very pleased all the pieces are coming together :-). Robert N M Watson Computer Laboratory University of Cambridge From owner-freebsd-afs@FreeBSD.ORG Sat Feb 23 17:57:38 2008 Return-Path: Delivered-To: afs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0365016A400 for ; Sat, 23 Feb 2008 17:57:38 +0000 (UTC) (envelope-from tol@stacken.kth.se) Received: from smtp-1.sys.kth.se (smtp-1.sys.kth.se [130.237.32.175]) by mx1.freebsd.org (Postfix) with ESMTP id BAA8813C442 for ; Sat, 23 Feb 2008 17:57:37 +0000 (UTC) (envelope-from tol@stacken.kth.se) Received: from localhost (localhost [127.0.0.1]) by smtp-1.sys.kth.se (Postfix) with ESMTP id 26E2E15589F; Sat, 23 Feb 2008 18:33:06 +0100 (CET) X-Virus-Scanned: by amavisd-new at kth.se Received: from smtp-1.sys.kth.se ([127.0.0.1]) by localhost (smtp-1.sys.kth.se [127.0.0.1]) (amavisd-new, port 10024) with LMTP id ZldwKMuMhZHx; Sat, 23 Feb 2008 18:33:03 +0100 (CET) Received: from [213.89.101.199] (c213-89-101-199.bredband.comhem.se [213.89.101.199]) by smtp-1.sys.kth.se (Postfix) with ESMTP id B354D1557E6; Sat, 23 Feb 2008 18:33:02 +0100 (CET) From: Tomas Olsson To: Alec Kloss In-Reply-To: <20080223161249.GH38141@hamlet.setfilepointer.com> References: <20080216035658.W93919@fledge.watson.org> <1203286882.16414.3.camel@heterodyne.kaj> <20080218012608.V96329@fledge.watson.org> <20080222125207.GD38141@hamlet.setfilepointer.com> <20080223092516.O23969@fledge.watson.org> <20080223102922.GF38141@hamlet.setfilepointer.com> <20080223110549.GG38141@hamlet.setfilepointer.com> <20080223161249.GH38141@hamlet.setfilepointer.com> Content-Type: text/plain Date: Sat, 23 Feb 2008 18:33:32 +0100 Message-Id: <1203788012.4065.10.camel@hippo.t.nxs.se> Mime-Version: 1.0 X-Mailer: Evolution 2.12.0 Content-Transfer-Encoding: 7bit Cc: afs@FreeBSD.org, Rasmus Kaj , Robert Watson , arla-drinkers@stacken.kth.se Subject: Re: Patches to get Arla running on FreeBSD 8-CURRENT X-BeenThere: freebsd-afs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: The Andrew File System and FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Feb 2008 17:57:38 -0000 On Sat, 2008-02-23 at 10:12 -0600, Alec Kloss wrote: > All of the heavy lifting is done in the big patch at > > http://setfilepointer.com/pub/arla/20080223-arla.diff [...] > Can anyone from Arla comment on the chances for incorporating > these patches into Arla itself? It'd be nice to have these changes > in Arla itself prior to submitting the port to FreeBSD. > Chances are good. If it looks ok it goes in. > Robert, thanks so much for your time. I owe you (at least) a beer. Methinks you're worth one too. Thanks for the great work! /t