On Wed, Jul 03, 2019 at 02:05:24PM -0400, Chris Ross wrote:

> On Wed, Jul 03, 2019 at 04:20:59PM +0200, Christian Weisgerber wrote:
> > Chris Ross:
> > 
> > > Is there a hard reason SR_BOOT_LOADER_SIZE cannot be raised to sometime
> > > larger, perhaps 1024 (instead of the current 320) ?
> > 
> > That size is part of the disk layout.
> > 
> > Looking at <dev/softraidvar.h>, the layout of a softraid partition
> > is this:
> > 
> >      16 sectors, unused  (potential disklabel, boot block)
> >   +  64 sectors softraid metadata
> >   + 320 sectors boot loader space
> >   + 128 sectors boot block space
> >     followed by the actual data
> > 
> > The boot block space is of dubious usefulness and unused as far as
> > I can tell, so I guess it could be reused to modestly extend the
> > boot loader space if there ever were a pressing reason.
> 
> Well, the question I had is: can I just make that whole block bigger.
> Thus making the partition lead-in bigger.  Is there a reason that whole
> area can't just be enlarged?
> 
> I'm rebuilding on a single-disk system an OpenBSD 6.5 with SR_BOOT_LOADER_SIZE
> set to 1024.  Then I'll see how that behaves when I try to build a raid1
> and install onto it.
> 
> For the case I had, I was teying to load a ~250mb boot loader, so 448
> sectors wouldn't be enough for me.
> 
>                - Chris
> 

I think that would break existing softraid setups. You cannot do such
things without being backward compatible. 

        -Otto

Reply via email to