From owner-freebsd-current@FreeBSD.ORG Mon Apr 21 21:03:57 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 737E237B404; Mon, 21 Apr 2003 21:03:57 -0700 (PDT) Received: from puffin.mail.pas.earthlink.net (puffin.mail.pas.earthlink.net [207.217.120.139]) by mx1.FreeBSD.org (Postfix) with ESMTP id A035843FE5; Mon, 21 Apr 2003 21:03:56 -0700 (PDT) (envelope-from tlambert2@mindspring.com) Received: from pool0085.cvx40-bradley.dialup.earthlink.net ([216.244.42.85] helo=mindspring.com) by puffin.mail.pas.earthlink.net with asmtp (SSLv3:RC4-MD5:128) (Exim 3.33 #1) id 197p0Y-0000Fx-00; Mon, 21 Apr 2003 21:03:51 -0700 Message-ID: <3EA4BEC2.2BE0AC73@mindspring.com> Date: Mon, 21 Apr 2003 21:02:10 -0700 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Alex.Wilkinson@dsto.defence.gov.au References: <3EA4946F.DBF7B2CC@mindspring.com> <20030422120346.L54751@squirm.dsto.defence.gov.au> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-ELNK-Trace: b1a02af9316fbb217a47c185c03b154d40683398e744b8a4a0d841dab08150fd3efeda93755aa5ad350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c cc: Robert Watson cc: current@freebsd.org Subject: Re: HEADS UP: UFS2 now the default creation type on 5.0-CURRENT X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Apr 2003 04:03:57 -0000 "Wilkinson,Alex" wrote: > Thanks for that. > > Do you know if UFS2 dynamically allocates inodes ? No; it gets them from the prereserved inodes area that is the result of the "-i" parameter. The "newfs" program has not changed that significantly, though the superblock has changed some. However, realize that the size of the on disk inode has doubled in size (from 128 to 256 bytes) because of the new pointer 64 bit indices. You should probably look at /usr/src/sys/ufs/ufs/dinode.h. Also, realize that almost all the other code is the same; in other words, it's important to know that we are talking about "UFS2", and *NOT* talking about "FFS2". In other words, this is about a flat numeric namespace for files, and the FFS directory structure information that's layered on top is not really variant, except as necessary due to implicit layering (a grep for "UFS2" in the files in /usr/src/sys/ufs/ffs is informative). -- Terry