From owner-freebsd-hackers Fri Dec 14 6:16:40 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from swan.prod.itd.earthlink.net (swan.mail.pas.earthlink.net [207.217.120.123]) by hub.freebsd.org (Postfix) with ESMTP id DD61D37B417 for ; Fri, 14 Dec 2001 06:16:36 -0800 (PST) Received: from pool0017.cvx22-bradley.dialup.earthlink.net ([209.179.198.17] helo=mindspring.com) by swan.prod.itd.earthlink.net with esmtp (Exim 3.33 #1) id 16Et8R-0007bR-00; Fri, 14 Dec 2001 06:16:23 -0800 Message-ID: <3C1A09BB.DEBCB854@mindspring.com> Date: Fri, 14 Dec 2001 06:16:27 -0800 From: Terry Lambert X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Peter Jeremy Cc: freebsd-hackers@freebsd.org Subject: Re: Adding a new FS to FreeBSD References: <20011214141518.E73243@gsmx07.alcatel.com.au> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Peter Jeremy wrote: > Since JFS has come up again... Are there any papers that explain how > to integrate a new filesystem into FreeBSD? The relevant chapter in > the FreeBSD Developers' Handbook (16) is a bit terse :-). > > Specifically, I'm looking at being able to read/write 2BSD filesystems > on my FreeBSD machines. Do you have small images of this FS, as well as header files that are redistributable (e.g. BSD license) and/or code? I could do the work for this as an example, if you wanted, since it should be almost no work at all, with sources under BSD license, but I would need to be able to dictate some FS image contents, which you would then need to "dd" into a file, compress, and ship to me (the intent would be to create an FS writer's tutorial; this may or may not end up in the handbook... I'd probably want to get a Dr. Dobb's article out of it first, I think). In particular, I would want the following images, as small as possible, along with whatever information you could give me in the way of BSD licensed headers and source (start with a "dd" image of all zero, so it will compress very well, and so it will contain only the delta data): 1) An empty FS 2) The same FS, with one one byte file created 3) The same FS, with two one byte files created 4) The same fs, with the first file deleted 5) An empty FS with an empty directory created 6) The same FS, with one one byte file created in the directory etc. (I will ask for more, if I need more). Floppy images are best, if the thing doesn't care what it runs on, since you can pre-"dd" /dev/zero on top of it, and I can get a vanilla "newfs" image. If you have the tools sources (e.g. "newfs", "fsck", etc.), this would be useful, as well, since I could vnconfig a device and recreate an empty FS image with native tools (self hosted), as well. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message