HEADS UP: UFS2 now the default creation type on 5.0-CURRENT
Terry Lambert
tlambert2 at mindspring.com
Mon Apr 21 21:03:57 PDT 2003
"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
More information about the freebsd-current
mailing list