From: alan@nabeth.cxo.dec.com (Alan Rollow - Dr. File System's Home for Wayward Inodes.)
Subject: Re: What can you do about corrupt disk blocks?
Date: 2000/10/12 [thread overview]
Message-ID: <8s4pdk$fpt$1@mailint03.im.hou.compaq.com> (raw)
In-Reply-To: 8s3r16$ts8$1@nnrp1.deja.com
In article <8s3r16$ts8$1@nnrp1.deja.com>, ed <ed2323@my-deja.com> writes:
>Thanks the for the post especially Alan's details on the file
>systems. Are there any good docs on the web that explain
>layout of cylinder group and superblocks etc and is the layout
>specific just to tru64 UFS or is it the same for any UFS, eg
>on Sun or aix etc.
I think the 4.3BSD Internals book has a chapter on file system
organization. Some of the BSD papers on the fast file system
may be out there somewhere. The vendor include files (where
present) are also a good source of information for some of the
data structure details of the file system.
As for the differences it really depends on whether a particular
vendor considers the changes they've made warrant a new name
for the file system. Some vendor could make very minor changes
to some data structures and decide the file system deserves a
different name. Another vendor could significantly change the
layout, but chose not to change the name.
I know that the Solaris and Tru64 UNIX implementations are
still pretty close at least at level of basic on-disk data
structures.
The short version of the layout is:
The beginning of a disk/volume/partition has a boot block and
the primary copy of the superblock. For whole disks this is
generally where the disk label or volume table of content will
be. However, this is very vendor specific.
After these two blocks all cylinder groups share the same basic
layout; free space (could be zero), backup superblock, cylinder
group block, inode table, free space. Most implementations will
have macros that can be applied to the superblock and cylinder
group block to get the on-disk address of the various data
structures.
The amount of free space in front of the backup superblock varies
as you work through the cylinder groups. If the geometry information
is accurate (not likely these days), it prevent the backup superblock
from ending up on a single surface. Since a head crash will tend to
take out that surface more "reliably" than the ones around it, the
progression protects the superblock from some types of failure.
While the geometry of most/all modern disks varies, the assumptions
made for this progressive layout are unlikely to create the reverse
situation of having the backup superblocks all on the same surface.
Just a guess though.
Inode layout may also be different, but switching from the direct/
indirect block address scheme is a pretty major change that would
warrant the marketing value of a vendor saying they have a new
file system.
>Thanks,
>ed.
>
>> --
>> Alan Rollow alan@nabeth.cxo.dec.com
>Sent via Deja.com http://www.deja.com/
>Before you buy.
>
--
Alan Rollow alan@nabeth.cxo.dec.com
next prev parent reply other threads:[~2000-10-12 4:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-10-11 4:00 What can you do about corrupt disk blocks? ed
2000-10-11 4:00 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
2000-10-12 4:00 ` ed
2000-10-12 4:00 ` Alan Rollow - Dr. File System's Home for Wayward Inodes. [this message]
2000-10-11 4:00 ` Eric Bennett
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox