Re: BIOCINSTALLBOOT/sparc64 installboot: EFBIG on too big boot loaders

2020-06-07 Thread Klemens Nanni
On Sun, Jun 07, 2020 at 03:24:30PM +0200, Klemens Nanni wrote: > On Sun, Jun 07, 2020 at 12:42:57AM +1000, Joel Sing wrote: > > While this works, you would be better off making use of the error > > reporting mechanism that exists. A compile tested only diff for > > the kernel side is below. A diff

Re: BIOCINSTALLBOOT/sparc64 installboot: EFBIG on too big boot loaders

2020-06-07 Thread Klemens Nanni
On Sun, Jun 07, 2020 at 12:42:57AM +1000, Joel Sing wrote: > While this works, you would be better off making use of the error > reporting mechanism that exists. A compile tested only diff for > the kernel side is below. A diff to installboot would be needed to > graft some code similar to that in

Re: BIOCINSTALLBOOT/sparc64 installboot: EFBIG on too big boot loaders

2020-06-06 Thread Joel Sing
On 20-06-05 22:42:17, Klemens Nanni wrote: > On Mon, Jun 01, 2020 at 11:48:05PM +0200, Klemens Nanni wrote: > > Installing an unstripped boot loader on softraid on sparc64 fails > > without proper error message. > > > > Make BIOCINSTALLBOOT return a proper errno, make installboot(8) use it > > to

Re: BIOCINSTALLBOOT/sparc64 installboot: EFBIG on too big boot loaders

2020-06-05 Thread Klemens Nanni
On Mon, Jun 01, 2020 at 11:48:05PM +0200, Klemens Nanni wrote: > Installing an unstripped boot loader on softraid on sparc64 fails > without proper error message. > > Make BIOCINSTALLBOOT return a proper errno, make installboot(8) use it > to provide proper usage errors plus unique code paths for

BIOCINSTALLBOOT/sparc64 installboot: EFBIG on too big boot loaders

2020-06-01 Thread Klemens Nanni
Installing an unstripped boot loader on softraid on sparc64 fails without proper error message. Make BIOCINSTALLBOOT return a proper errno, make installboot(8) use it to provide proper usage errors plus unique code paths for debugging. At first, I made sr_ioctl_installboot() use sr_error() in the