That would make my life a lot easier! On the other hand, the most straight forward thing to do would be to move the stage 1.5 to another default sector. So you can not forget to set any option that ruins your array if missing. Also there is no need to add some autodetection code for hpt controllers then.
One step ahead of me, you are.
I was just thinking of doing autodetection of HPT magic in GRUB.
The autodetection has a plus side too, though. It can detect other stuff that should not be touched (Windows/Veritas dynamic partition information comes to mind?) and not touch sectors based on what is actually there on a particular system. Would perhaps save the implementor the pain of choosing once there's just too many reserved sectors and the stage1.5 loader wont fit.
I wrote my HPT370 RAID support for kernel 2.2 based on MD. I debugged and extended the HPT370 ataraid module. I wrote a EVMS plugin for HPT370 RAID support. I write bug-reports for dmraid HPT370 support. I write bug-reports for HALd which has autodetection problems.
I think I've read that the stage1.5 loader is not really necessary in some cases, think I'll go doc-hunting.
Or even better, dmraid could protect the metadata blocks by some magic flag to dm-mod. This isn't possible as is, is it?
One can make any I/O to this block fail. But I would like something like discarding any writes and only perform reads. "dd" backups would still work then.
Right. And perhaps a user-definable flag to turn the protection on or off :-). Is it possible without adding new code to dm-mod?
Greetings, Wilfried