On Tue, 2007-10-23 at 19:03 -0400, Bill Davidsen wrote: > John Stoffel wrote: > > Why do we have three different positions for storing the superblock? > > > Why do you suggest changing anything until you get the answer to this > question? If you don't understand why there are three locations, perhaps > that would be a good initial investigation. > > Clearly the short answer is that they reflect three stages of Neil's > thinking on the topic, and I would bet that he had a good reason for > moving the superblock when he did it. I believe, and Neil can correct me if I'm wrong, that 1.0 (at the end of the device) is to satisfy people that want to get at their raid1 data without bringing up the device or using a loop mount with an offset. Version 1.1, at the beginning of the device, is to prevent accidental access to a device when the raid array doesn't come up. And version 1.2 (4k from the beginning of the device) would be suitable for those times when you want to embed a boot sector at the very beginning of the device (which really only needs 512 bytes, but a 4k offset is as easy to deal with as anything else). From the standpoint of wanting to make sure an array is suitable for embedding a boot sector, the 1.2 superblock may be the best default. > Since you have to support all of them or break existing arrays, and they > all use the same format so there's no saving of code size to mention, > why even bring this up? > -- Doug Ledford <dledford@xxxxxxxxxx> GPG KeyID: CFBFF194 http://people.redhat.com/dledford Infiniband specific RPMs available at http://people.redhat.com/dledford/Infiniband
Attachment:
signature.asc
Description: This is a digitally signed message part