From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,12cf82bb1d47c9d6 X-Google-Attributes: gidfa528,public 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 Message-ID: <8s4pdk$fpt$1@mailint03.im.hou.compaq.com>#1/1 X-Deja-AN: 680636889 Distribution: world References: <8s1a9h$qjk$1@nnrp1.deja.com> <8s29c7$n60$1@mailint03.im.hou.compaq.com> <8s3r16$ts8$1@nnrp1.deja.com> X-Complaints-To: usenet@mailint03.im.hou.compaq.com X-Trace: mailint03.im.hou.compaq.com 971368692 16189 16.82.16.67 (12 Oct 2000 16:38:12 GMT) Organization: Digital Equipment Corporation Reply-To: alan@nabeth.cxo.dec.com (Alan Rollow - Dr. File System's Home for Wayward Inodes.) NNTP-Posting-Date: 12 Oct 2000 16:38:12 GMT Newsgroups: comp.unix.tru64 In article <8s3r16$ts8$1@nnrp1.deja.com>, ed 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