Re: boot loaders: softraid volumes must be on RAID partitions

2023-10-23 Thread Klemens Nanni
On Mon, Oct 23, 2023 at 06:36:21PM -0300, Crystal Kolipe wrote: > On Mon, Oct 23, 2023 at 11:04:07AM +, Klemens Nanni wrote: > > 10/16/23 04:02, Klemens Nanni ??: > > > The current check implies one could use, e.g. SWAP or MSDOS partitions > > > as softraid(4) chunks, but

Re: boot loaders: softraid volumes must be on RAID partitions

2023-10-23 Thread Theo de Raadt
Crystal Kolipe wrote: `> Hi Theo, it's a long time since we last conversed. > > On Mon, Oct 23, 2023 at 03:44:17PM -0600, Theo de Raadt wrote: > > What user without OpenBSD experience is booting from 'd'? > > > > Which also poses the question -- what user with OpenBSD experience > > is booting

Re: boot loaders: softraid volumes must be on RAID partitions

2023-10-23 Thread Crystal Kolipe
Hi Theo, it's a long time since we last conversed. On Mon, Oct 23, 2023 at 03:44:17PM -0600, Theo de Raadt wrote: > What user without OpenBSD experience is booting from 'd'? > > Which also poses the question -- what user with OpenBSD experience > is booting from 'd'? > > Why? Some disklabel

Re: boot loaders: softraid volumes must be on RAID partitions

2023-10-23 Thread Theo de Raadt
Crystal Kolipe wrote: > On Mon, Oct 23, 2023 at 11:04:07AM +, Klemens Nanni wrote: > > 10/16/23 04:02, Klemens Nanni ??: > > > The current check implies one could use, e.g. SWAP or MSDOS partitions > > > as softraid(4) chunks, but sys/dev/softraid.c always expects FS_RAID, > > > thus

Re: boot loaders: softraid volumes must be on RAID partitions

2023-10-23 Thread Crystal Kolipe
On Mon, Oct 23, 2023 at 11:04:07AM +, Klemens Nanni wrote: > 10/16/23 04:02, Klemens Nanni ??: > > The current check implies one could use, e.g. SWAP or MSDOS partitions > > as softraid(4) chunks, but sys/dev/softraid.c always expects FS_RAID, > > thus using chunks with different

Re: fix an error in flowspec_get_addr()

2023-10-23 Thread Theo Buehler
On Mon, Oct 23, 2023 at 12:50:39PM +0200, Claudio Jeker wrote: > So flowspec_get_addr() in the IPv6 case is utterly complicated. Indeed. It would probably be worthwhile to add a bit of regress exercising the branches of this function. > Since matching can be done on some sub-part of the prefix.

Re: boot loaders: softraid volumes must be on RAID partitions

2023-10-23 Thread Klemens Nanni
10/16/23 04:02, Klemens Nanni пишет: > The current check implies one could use, e.g. SWAP or MSDOS partitions > as softraid(4) chunks, but sys/dev/softraid.c always expects FS_RAID, > thus using chunks with different partition types is not possible: > > # vmctl create -s100M disk.img >

fix an error in flowspec_get_addr()

2023-10-23 Thread Claudio Jeker
So flowspec_get_addr() in the IPv6 case is utterly complicated. Since matching can be done on some sub-part of the prefix. So there is this shift_right() call that moves takes care of this special offset. Now the shift_right call uses *olen but should actually use xoff instead. *olen is set much