Re: Ultrix compat_label: is loop useless?

Anders Magnusson <[email protected]>
Newsgroups gmane.os.netbsd.ports.vax
Message-ID <[email protected]>
Den 2024-01-10 kl. 18:31, skrev Mouse:
>>> What function does the loop serve?  It looks [pointless to me].
>> I looked at the loop and my impression is the same.
> Okay, so that substantially reduces the chance I just missed something.
>
>> I guess it was meant at some point to find an un-aligned disklabel,
>> or something like that.
> I suspect you are correct.  On various other ports, disksubr.c contains
> code that _does_ look for a disklabel all through the relevant sector.
> I suspect this was copied, changed, and never cleaned up.  (I'm doing
> an experiment involving disklabels, involving going through all ports
> on the version I'm using, looking at most disklabel code, so I am in a
> position to be confident that other ports have relatively similar code
> that does loop.)
This code comes from pmax port around 1994.

-- Ragge
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.