From owner-freebsd-hackers@FreeBSD.ORG Mon Aug 1 01:52:09 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4837316A41F; Mon, 1 Aug 2005 01:52:09 +0000 (GMT) (envelope-from yfyoufeng@263.net) Received: from smtp.263.net (mx01.263.net.cn [211.150.96.22]) by mx1.FreeBSD.org (Postfix) with ESMTP id BC4AB43D46; Mon, 1 Aug 2005 01:52:08 +0000 (GMT) (envelope-from yfyoufeng@263.net) Received: from [10.217.12.183] (localhost [127.0.0.1]) by smtp.263.net (Postfix) with ESMTP id 59C78C37A0; Mon, 1 Aug 2005 09:52:02 +0800 (CST) (envelope-from yfyoufeng@263.net) Received: from [10.217.12.183] (unknown [61.135.152.194]) by antispam-2 (Coremail:263(050316)) with SMTP id EHAgAUKA7UKqHJjC.1 for ; Mon, 01 Aug 2005 09:52:02 +0800 (CST) X-TEBIE-Originating-IP: [61.135.152.194] From: yf-263 To: Ryan Sommers In-Reply-To: <42EB9005.8080200@gamersimpact.com> References: <42E9A0E7.40703@centtech.com> <42EB9005.8080200@gamersimpact.com> Content-Type: text/plain; charset=UTF-8 Organization: Unix-driver.org Date: Mon, 01 Aug 2005 17:51:59 +0800 Message-Id: <1122889920.2885.2.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.2.2 (2.2.2-5) Content-Transfer-Encoding: 8bit X-Mailman-Approved-At: Mon, 01 Aug 2005 12:16:25 +0000 Cc: freebsd-fs@freebsd.org, freebsd-hackers@freebsd.org, Eric Anderson Subject: Re: Pointers for understanding vfs/buffer/filesystem architecture X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: yfyoufeng@263.net List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Aug 2005 01:52:09 -0000 在 2005-07-30六的 09:34 -0500,Ryan Sommers写道: > Eric Anderson wrote: > > I've very interested in learning about FreeBSD's implementation of > > vfs/buffer cache/fs archicture. I've read through mckusick@'s chapter > > in the Design and Implmentation of FreeBSD book, and I've read the UNIX > > Filesystems book cover to cover. > > > > What I'd like to see/read/understand, is how FreeBSD in particular is > > put together in this regard, and then I'd like to go about writing a > > very very simple filesystem as a learning excercise. > > > > Can anyone give me some pointers? Would anyone be willing to guide me > > along in my quest by answering questions (off list if preferred, or on > > list), etc? > > > > Thanks in advance for the hints/input! > > Eric > > > > > > Best place would be the source code itself. I think the nullfs > implementation would be a good place (src/sys/fs/nullfs). I thought I > also remembered some little article on writing an FS for freebsd, > finding it is eluding me though. I'm also doing the same work. Now I'm working on port our data access library into the FreeBSD kernel space as a vnode hooks. Hope we can help each others :) > -- yf-263 Unix-driver.org