From owner-freebsd-fs@FreeBSD.ORG Tue Jun 20 15:42:35 2006 Return-Path: X-Original-To: freebsd-fs@freebsd.org Delivered-To: freebsd-fs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 48DC716A47C for ; Tue, 20 Jun 2006 15:42:35 +0000 (UTC) (envelope-from simon_freebsd_fs@bigblue.demon.co.uk) Received: from anchor-post-35.mail.demon.net (anchor-post-35.mail.demon.net [194.217.242.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id DAB9643D48 for ; Tue, 20 Jun 2006 15:42:34 +0000 (GMT) (envelope-from simon_freebsd_fs@bigblue.demon.co.uk) Received: from demon-gw.ledwoodtechnology.co.uk ([80.177.235.49] helo=[192.168.25.19]) by anchor-post-35.mail.demon.net with esmtp (Exim 4.42) id 1FsiMx-000Kxg-Hk for freebsd-fs@freebsd.org; Tue, 20 Jun 2006 15:42:29 +0000 Message-ID: <449817BE.50104@bigblue.demon.co.uk> Date: Tue, 20 Jun 2006 16:43:58 +0100 From: Simon Truss User-Agent: Thunderbird 1.5.0.4 (Windows/20060516) MIME-Version: 1.0 To: freebsd-fs@freebsd.org References: <00b101c69476$9a6686a0$99dfdfdf@bakuhatsu.net> In-Reply-To: <00b101c69476$9a6686a0$99dfdfdf@bakuhatsu.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: On-disk format of UFS/UFS2 (for firmware implementation) X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 15:42:35 -0000 Matt Sealey wrote: > Hello, > > I was wondering if there is any definitive, authoritative or even just comprehensive > documentation on the on-disk format (superblock, nodes, file linking, extents..) of > the UFS and UFS2 filesystems. You probably are looking for this paper: A Fast File System for UNIX (1984) http://citeseer.ist.psu.edu/12920.html There are several books on BSD of which Kirk McKusick has written some. I would recommend 'Design and Implementation of xxxBSD'. I have the 4.3BSD book however there are newer releases and a quick google turned up FreeBSD. Sleuthkit contains code to read many file systems and its code may assist in extracting the design of FFS. http://www.sleuthkit.org/ > We would like to implement it in firmware for booting FreeBSD (and NetBSD and eventually > Solaris which uses some variant). I have the source code from sys/fs/ufs already but it > is not the preferred method of implementing filesystem code. It only needs read support > for now so it shouldn't be that complicated, but... There has been work on flash file systems for BSD, a quick search may turn up something useful. Simon