From owner-freebsd-hackers@FreeBSD.ORG Fri May 6 20:38:04 2005 Return-Path: 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 592D716A4D4 for ; Fri, 6 May 2005 20:38:04 +0000 (GMT) Received: from meketrex.pix.net (meketrex.pix.net [192.111.45.13]) by mx1.FreeBSD.org (Postfix) with ESMTP id 59A9343D8B for ; Fri, 6 May 2005 20:38:03 +0000 (GMT) (envelope-from lidl@meketrex.pix.net) Received: (from lidl@localhost) by meketrex.pix.net (8.11.6/8.11.6) id j46KbU218057; Fri, 6 May 2005 16:37:30 -0400 (EDT) Date: Fri, 6 May 2005 16:37:30 -0400 From: "Kurt J. Lidl" To: Warner Losh Message-ID: <20050506203730.GB17588@pix.net> Mail-Followup-To: Warner Losh , freebsd-hackers@freebsd.org References: <3c220db005050612561d05cefa@mail.gmail.com> <20050506.140135.85403237.imp@bsdimp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050506.140135.85403237.imp@bsdimp.com> User-Agent: Mutt/1.5.9i cc: freebsd-hackers@freebsd.org Subject: Re: FS impl. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 May 2005 20:38:04 -0000 On Fri, May 06, 2005 at 02:01:35PM -0600, Warner Losh wrote: > > I have been trying to write my own UFS-like filesystem > > implementation for fun. I had read somewhere that UFS was developed in > > user space (correct me if I'm wrong on that one) and then moved over > > to kernel-space. I was wondering if there are any existing facilities > > in the kernel source tree that would allow me to develop an fs in user > > space easily or with a little tweaking? As of right now, I have to > > develop, compile, panic, reboot, debug etc. which is frustrating and > > time consuming. > > Maybe you are thinking of NFS :-). You can use the same hooks that > amd and similar programs to implement your code in userland. It's pretty well known that Kirk did the 4.2 FFS implementation as a user-mode process. This statement is made directly in Luke Mewburn's paper on cross-building NetBSD: http://www.usenix.org/events/bsdcon03/tech/full_papers/mewburn/mewburn.pdf (page 9). It doesn't say in the original 4.2 FFS paper. -Kurt