From owner-freebsd-fs Wed Oct 3 11:20:50 2001 Delivered-To: freebsd-fs@freebsd.org Received: from cs.rpi.edu (mumble.cs.rpi.edu [128.213.8.16]) by hub.freebsd.org (Postfix) with ESMTP id 8225537B405 for ; Wed, 3 Oct 2001 11:20:48 -0700 (PDT) Received: from cs.rpi.edu (monica.cs.rpi.edu [128.213.7.2]) by cs.rpi.edu (8.9.3/8.9.3) with ESMTP id OAA54790 for ; Wed, 3 Oct 2001 14:20:47 -0400 (EDT) Message-Id: <200110031820.OAA54790@cs.rpi.edu> To: freebsd-fs@freebsd.org Subject: OpenAFS Date: Wed, 03 Oct 2001 14:20:47 -0400 From: "David E. Cross" Sender: owner-freebsd-fs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Who is doing the OpenAFS work? I'd like to see if I can offer a hand. Also, where (if anywhere) are some documents on the VOP/VFS layer? -- David Cross | email: crossd@cs.rpi.edu Lab Director | Rm: 308 Lally Hall Rensselaer Polytechnic Institute, | Ph: 518.276.2860 Department of Computer Science | Fax: 518.276.4033 I speak only for myself. | WinNT:Linux::Linux:FreeBSD To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message From owner-freebsd-fs Wed Oct 3 12:28:40 2001 Delivered-To: freebsd-fs@freebsd.org Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by hub.freebsd.org (Postfix) with ESMTP id D6A7B37B401 for ; Wed, 3 Oct 2001 12:28:36 -0700 (PDT) Received: (from des@localhost) by flood.ping.uio.no (8.9.3/8.9.3) id VAA48084; Wed, 3 Oct 2001 21:28:32 +0200 (CEST) (envelope-from des@ofug.org) X-URL: http://www.ofug.org/~des/ X-Disclaimer: The views expressed in this message do not necessarily coincide with those of any organisation or company with which I am or have been affiliated. To: "David E. Cross" Cc: freebsd-fs@FreeBSD.ORG Subject: Re: OpenAFS References: <200110031820.OAA54790@cs.rpi.edu> From: Dag-Erling Smorgrav Date: 03 Oct 2001 21:28:32 +0200 In-Reply-To: <200110031820.OAA54790@cs.rpi.edu> Message-ID: Lines: 9 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-fs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org "David E. Cross" writes: > Also, where (if anywhere) are some documents on the VOP/VFS layer? _The Design and Implementation of the 4.4 BSD Operating System_, 'man vnode', and 'man -k VOP' DES -- Dag-Erling Smorgrav - des@ofug.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message From owner-freebsd-fs Wed Oct 3 13: 9:39 2001 Delivered-To: freebsd-fs@freebsd.org Received: from cs.rpi.edu (mumble.cs.rpi.edu [128.213.8.16]) by hub.freebsd.org (Postfix) with ESMTP id 6B62B37B403 for ; Wed, 3 Oct 2001 13:09:37 -0700 (PDT) Received: from cs.rpi.edu (monica.cs.rpi.edu [128.213.7.2]) by cs.rpi.edu (8.9.3/8.9.3) with ESMTP id QAA58984; Wed, 3 Oct 2001 16:09:29 -0400 (EDT) Message-Id: <200110032009.QAA58984@cs.rpi.edu> To: Dag-Erling Smorgrav Cc: "David E. Cross" , freebsd-fs@FreeBSD.ORG, crossd@cs.rpi.edu Subject: Re: OpenAFS In-Reply-To: Message from Dag-Erling Smorgrav of "03 Oct 2001 21:28:32 +0200." Date: Wed, 03 Oct 2001 16:09:29 -0400 From: "David E. Cross" Sender: owner-freebsd-fs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Ugh, I have read all of those. I am not left with a good understanding of things like VOP_LOCK (when it is needed... based on some previous discussions various operations give you the vnode locked or unlocked and expect it returned in a state that may not be how they handed it to you, etc) -- David Cross | email: crossd@cs.rpi.edu Lab Director | Rm: 308 Lally Hall Rensselaer Polytechnic Institute, | Ph: 518.276.2860 Department of Computer Science | Fax: 518.276.4033 I speak only for myself. | WinNT:Linux::Linux:FreeBSD To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message From owner-freebsd-fs Wed Oct 3 14:58:53 2001 Delivered-To: freebsd-fs@freebsd.org Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by hub.freebsd.org (Postfix) with ESMTP id 62C2937B401 for ; Wed, 3 Oct 2001 14:58:49 -0700 (PDT) Received: (from des@localhost) by flood.ping.uio.no (8.9.3/8.9.3) id XAA48714; Wed, 3 Oct 2001 23:58:45 +0200 (CEST) (envelope-from des@ofug.org) X-URL: http://www.ofug.org/~des/ X-Disclaimer: The views expressed in this message do not necessarily coincide with those of any organisation or company with which I am or have been affiliated. To: "David E. Cross" Cc: freebsd-fs@FreeBSD.ORG Subject: Re: OpenAFS References: <200110032009.QAA58984@cs.rpi.edu> From: Dag-Erling Smorgrav Date: 03 Oct 2001 23:58:44 +0200 In-Reply-To: <200110032009.QAA58984@cs.rpi.edu> Message-ID: Lines: 23 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-fs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org "David E. Cross" writes: > Ugh, I have read all of those. I am not left with a good understanding > of things like VOP_LOCK (when it is needed... based on some previous > discussions various operations give you the vnode locked or unlocked and > expect it returned in a state that may not be how they handed it to you, etc) The man pages for the individual VOPs document this: LOCKS VOP_OPEN(9) expects vp to be locked on entry and will leave it locked on return. VOP_CLOSE(9) expects at least a reference to be associated with the vnode and does not care whether the vnode is locked or not. The lock and ref erence state is left unchanged on return. Note that vn_close expects an unlocked, referenced vnode and will dereference the vnode prior to returning. For quick reference, consult src/sys/kern/vnode_if.src. DES -- Dag-Erling Smorgrav - des@ofug.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message From owner-freebsd-fs Fri Oct 5 11:42: 1 2001 Delivered-To: freebsd-fs@freebsd.org Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by hub.freebsd.org (Postfix) with ESMTP id 784CC37B409 for ; Fri, 5 Oct 2001 11:41:58 -0700 (PDT) Received: from fledge.watson.org (robert@fledge.pr.watson.org [192.0.2.3]) by fledge.watson.org (8.11.6/8.11.5) with SMTP id f95IfJB54558; Fri, 5 Oct 2001 14:41:20 -0400 (EDT) (envelope-from robert@fledge.watson.org) Date: Fri, 5 Oct 2001 14:41:19 -0400 (EDT) From: Robert Watson X-Sender: robert@fledge.watson.org To: Dag-Erling Smorgrav Cc: "David E. Cross" , freebsd-fs@FreeBSD.ORG Subject: Re: OpenAFS In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-fs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The man pages are not known either for their technical depth, nor (it turns out) their correctness. Likewise, the locking statements in vnode_if.src were fairly out of sync last I checked. If that's changed, and I'm simply dated, I'm delighted to hear that :-). Robert N M Watson FreeBSD Core Team, TrustedBSD Project robert@fledge.watson.org NAI Labs, Safeport Network Services On 3 Oct 2001, Dag-Erling Smorgrav wrote: > "David E. Cross" writes: > > Ugh, I have read all of those. I am not left with a good understanding > > of things like VOP_LOCK (when it is needed... based on some previous > > discussions various operations give you the vnode locked or unlocked and > > expect it returned in a state that may not be how they handed it to you, etc) > > The man pages for the individual VOPs document this: > > LOCKS > VOP_OPEN(9) expects vp to be locked on entry and will leave it locked on > return. > > VOP_CLOSE(9) expects at least a reference to be associated with the vnode > and does not care whether the vnode is locked or not. The lock and ref > erence state is left unchanged on return. Note that vn_close expects an > unlocked, referenced vnode and will dereference the vnode prior to > returning. > > For quick reference, consult src/sys/kern/vnode_if.src. > > DES > -- > Dag-Erling Smorgrav - des@ofug.org > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-fs" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message From owner-freebsd-fs Fri Oct 5 11:43:12 2001 Delivered-To: freebsd-fs@freebsd.org Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by hub.freebsd.org (Postfix) with ESMTP id B16CB37B406 for ; Fri, 5 Oct 2001 11:43:08 -0700 (PDT) Received: from fledge.watson.org (robert@fledge.pr.watson.org [192.0.2.3]) by fledge.watson.org (8.11.6/8.11.5) with SMTP id f95IgqB54565; Fri, 5 Oct 2001 14:42:52 -0400 (EDT) (envelope-from robert@fledge.watson.org) Date: Fri, 5 Oct 2001 14:42:51 -0400 (EDT) From: Robert Watson X-Sender: robert@fledge.watson.org To: "David E. Cross" Cc: freebsd-fs@freebsd.org Subject: Re: OpenAFS In-Reply-To: <200110031820.OAA54790@cs.rpi.edu> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-fs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org There is, btw, an openafs mailing list dedicated to the FreeBSD port, port-freebsd@openafs.org, I believe. Tom Maher at CMU was working on the port -- his address is tardis@watson.org. Last I checked with him, userland stuff generally worked well, especially the server, but the kernel module hadn't really been looked at. The most similar kernel module is probably the Darwin module, but there are some locking and reference counting differences due to the point at which the Darwin VFS was forked from ours. Robert N M Watson FreeBSD Core Team, TrustedBSD Project robert@fledge.watson.org NAI Labs, Safeport Network Services On Wed, 3 Oct 2001, David E. Cross wrote: > Who is doing the OpenAFS work? I'd like to see if I can offer a hand. > > Also, where (if anywhere) are some documents on the VOP/VFS layer? > > -- > David Cross | email: crossd@cs.rpi.edu > Lab Director | Rm: 308 Lally Hall > Rensselaer Polytechnic Institute, | Ph: 518.276.2860 > Department of Computer Science | Fax: 518.276.4033 > I speak only for myself. | WinNT:Linux::Linux:FreeBSD > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-fs" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message From owner-freebsd-fs Fri Oct 5 11:50:39 2001 Delivered-To: freebsd-fs@freebsd.org Received: from cs.rpi.edu (mumble.cs.rpi.edu [128.213.8.16]) by hub.freebsd.org (Postfix) with ESMTP id 1AEF337B406; Fri, 5 Oct 2001 11:50:37 -0700 (PDT) Received: from cs.rpi.edu (phoenix.cs.rpi.edu [128.113.96.153]) by cs.rpi.edu (8.9.3/8.9.3) with ESMTP id OAA38910; Fri, 5 Oct 2001 14:50:31 -0400 (EDT) Message-Id: <200110051850.OAA38910@cs.rpi.edu> To: Robert Watson Cc: "David E. Cross" , freebsd-fs@freebsd.org, crossd@cs.rpi.edu Subject: Re: OpenAFS In-Reply-To: Message from Robert Watson of "Fri, 05 Oct 2001 14:42:51 EDT." Date: Fri, 05 Oct 2001 14:50:31 -0400 From: "David E. Cross" Sender: owner-freebsd-fs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hmm... If I knew when the Darwin VFS was forked from ours I could roll forward the diffs to the various FS components and probably get something that would be pretty close to working. -- David Cross | email: crossd@cs.rpi.edu Lab Director | Rm: 308 Lally Hall Rensselaer Polytechnic Institute, | Ph: 518.276.2860 Department of Computer Science | Fax: 518.276.4033 I speak only for myself. | WinNT:Linux::Linux:FreeBSD To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message From owner-freebsd-fs Fri Oct 5 12: 7:10 2001 Delivered-To: freebsd-fs@freebsd.org Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by hub.freebsd.org (Postfix) with ESMTP id 42E7C37B401 for ; Fri, 5 Oct 2001 12:07:07 -0700 (PDT) Received: from fledge.watson.org (robert@fledge.pr.watson.org [192.0.2.3]) by fledge.watson.org (8.11.6/8.11.5) with SMTP id f95J6oB55017; Fri, 5 Oct 2001 15:06:50 -0400 (EDT) (envelope-from robert@fledge.watson.org) Date: Fri, 5 Oct 2001 15:06:50 -0400 (EDT) From: Robert Watson X-Sender: robert@fledge.watson.org To: "David E. Cross" Cc: freebsd-fs@freebsd.org, Pat Dirks Subject: Re: OpenAFS In-Reply-To: <200110051850.OAA38910@cs.rpi.edu> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-fs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Fri, 5 Oct 2001, David E. Cross wrote: > Hmm... If I knew when the Darwin VFS was forked from ours I could roll > forward the diffs to the various FS components and probably get > something that would be pretty close to working. I believe that Darwin derives its VFS from FreeBSD 3.2. However, there have been other things moved back and forth/merged since then, so I wouldn't be surprised if you find some stuff that's newer than that. I've CC'd Pat Dirks, on Apple's Core OS team, who might be able to shed light on things. I know that there is interest at Apple at sync'ing up with some more recent versions of FreeBSD kernel code, also. Robert N M Watson FreeBSD Core Team, TrustedBSD Project robert@fledge.watson.org NAI Labs, Safeport Network Services To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message From owner-freebsd-fs Fri Oct 5 13:29:29 2001 Delivered-To: freebsd-fs@freebsd.org Received: from mail-out2.apple.com (mail-out2.apple.com [17.254.0.51]) by hub.freebsd.org (Postfix) with ESMTP id 3A93137B408; Fri, 5 Oct 2001 13:29:25 -0700 (PDT) Received: from mailgate1.apple.com (A17-128-100-225.apple.com [17.128.100.225]) by mail-out2.apple.com (8.11.3/8.11.3) with ESMTP id f95KTO128973; Fri, 5 Oct 2001 13:29:24 -0700 (PDT) Received: from scv1.apple.com (scv1.apple.com) by mailgate1.apple.com (Content Technologies SMTPRS 4.2.1) with ESMTP id ; Fri, 5 Oct 2001 13:29:16 -0700 Received: from shakti (shakti.apple.com [17.202.42.184]) by scv1.apple.com (8.9.3/8.9.3) with ESMTP id NAA08279; Fri, 5 Oct 2001 13:29:21 -0700 (PDT) Date: Fri, 5 Oct 2001 13:29:21 -0700 Subject: Re: OpenAFS Content-Type: text/plain; charset=US-ASCII; format=flowed Mime-Version: 1.0 (Apple Message framework v472) Cc: "David E. Cross" , freebsd-fs@freebsd.org, Pat Dirks To: Robert Watson From: Umesh Vaishampayan In-Reply-To: Message-Id: Content-Transfer-Encoding: 7bit X-Mailer: Apple Mail (2.472) Sender: owner-freebsd-fs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Friday, October 5, 2001, at 12:06 PM, Robert Watson wrote: > > On Fri, 5 Oct 2001, David E. Cross wrote: > >> Hmm... If I knew when the Darwin VFS was forked from ours I could roll >> forward the diffs to the various FS components and probably get >> something that would be pretty close to working. > > I believe that Darwin derives its VFS from FreeBSD 3.2. However, there > have been other things moved back and forth/merged since then, so I > wouldn't be surprised if you find some stuff that's newer than that. I've > CC'd Pat Dirks, on Apple's Core OS team, who might be able to shed light > on things. I know that there is interest at Apple at sync'ing up with > some more recent versions of FreeBSD kernel code, also. > No. Darwin VFS is 4.4BSD Lites2 VFS with some additions. --Umesh -- Umesh Vaishampayan Apple Computer, Inc. Mac OS X Kernel Ph: (408) 974 0229 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message From owner-freebsd-fs Fri Oct 5 17:39:32 2001 Delivered-To: freebsd-fs@freebsd.org Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by hub.freebsd.org (Postfix) with ESMTP id 3CC4A37B40A; Fri, 5 Oct 2001 17:39:27 -0700 (PDT) Received: (from des@localhost) by flood.ping.uio.no (8.9.3/8.9.3) id CAA60467; Sat, 6 Oct 2001 02:39:25 +0200 (CEST) (envelope-from des@ofug.org) X-URL: http://www.ofug.org/~des/ X-Disclaimer: The views expressed in this message do not necessarily coincide with those of any organisation or company with which I am or have been affiliated. To: Robert Watson Cc: "David E. Cross" , freebsd-fs@FreeBSD.ORG Subject: Re: OpenAFS References: From: Dag-Erling Smorgrav Date: 06 Oct 2001 02:39:25 +0200 In-Reply-To: Message-ID: Lines: 13 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-fs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Robert Watson writes: > The man pages are not known either for their technical depth, nor (it > turns out) their correctness. Likewise, the locking statements in > vnode_if.src were fairly out of sync last I checked. If that's changed, > and I'm simply dated, I'm delighted to hear that :-). Eivind worked very hard to update them a few years ago (when he rewrote vnode_if.pl from Bourne shell to Perl), and AFAIK they haven't been subject to change since then. I might be wrong, but I doubt it. DES -- Dag-Erling Smorgrav - des@ofug.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message