From owner-freebsd-arch@FreeBSD.ORG Mon Mar 31 22:23:42 2008 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 753B71065673; Mon, 31 Mar 2008 22:23:42 +0000 (UTC) (envelope-from phk@critter.freebsd.dk) Received: from phk.freebsd.dk (phk.freebsd.dk [130.225.244.222]) by mx1.freebsd.org (Postfix) with ESMTP id 3B5268FC13; Mon, 31 Mar 2008 22:23:41 +0000 (UTC) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (unknown [192.168.61.3]) by phk.freebsd.dk (Postfix) with ESMTP id DCFB017104; Mon, 31 Mar 2008 22:23:39 +0000 (UTC) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.14.2/8.14.2) with ESMTP id m2VMNbjD026081; Mon, 31 Mar 2008 22:23:38 GMT (envelope-from phk@critter.freebsd.dk) To: Bakul Shah From: "Poul-Henning Kamp" In-Reply-To: Your message of "Mon, 31 Mar 2008 15:21:54 MST." <20080331222154.C976C5B50@mail.bitblocks.com> Date: Mon, 31 Mar 2008 22:23:37 +0000 Message-ID: <26080.1207002217@critter.freebsd.dk> Sender: phk@critter.freebsd.dk Cc: Christopher Arnold , Martin Fouts , arch@freebsd.org, qpadla@gmail.com, freebsd-arch@freebsd.org Subject: Re: Flash disks and FFS layout heuristics X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Mar 2008 22:23:42 -0000 In message <20080331222154.C976C5B50@mail.bitblocks.com>, Bakul Shah writes: >On Mon, 31 Mar 2008 13:06:10 PDT Matthew Dillon wrote: >> But how do you index that information? You can't simply append the >> information to the NAND unless you also have a way to access it. So >> does the filesystem have to scan the NAND (or significant portions of it) >> in order to build an index of the filesystem topology in system memory? > >One possible way: > >I'd design the system so that each update ends with the write >of a root block[1]. This is sort of the approach Margo Seltzer used for her (Kludge-)LFS it has many drawbacks, in particular when it comes to recovery. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence.