Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Apr 2003 21:02:10 -0700
From:      Terry Lambert <tlambert2@mindspring.com>
To:        Alex.Wilkinson@dsto.defence.gov.au
Cc:        current@freebsd.org
Subject:   Re: HEADS UP: UFS2 now the default creation type on 5.0-CURRENT
Message-ID:  <3EA4BEC2.2BE0AC73@mindspring.com>
References:  <Pine.NEB.3.96L.1030420105721.16891f-100000@fledge.watson.org>  <3EA4946F.DBF7B2CC@mindspring.com> <20030422120346.L54751@squirm.dsto.defence.gov.au>

next in thread | previous in thread | raw e-mail | index | archive | help
"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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3EA4BEC2.2BE0AC73>