CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected]    2020/06/08 13:17:13

Modified files:
        sys/dev        : softraid.c 
        usr.sbin/installboot: i386_softraid.c installboot.h softraid.c 
                              sparc64_softraid.c 

Log message:
Provide clear errors when trying to install oversized boot loader

sparc64 installboot(8) on softraid(4) with too large files, e.g. unstripped
builds, fails poorly with "installboot: softraid installboot failed".

This is due to the BIOCINSTALLBOOT ioctl(2) returing the default EINVAL
rather than using softraid's sr_error() interface properly;  additionally,
installboot does not check for such message from the bio(4) layer.

Make the kernel generate "boot block too large" and "boot loader too large"
messages for softraid devices and have installboot act upon them analogous
to bioctl(8), by adapting its bio_status() into the new sr_status() helper.

Input, reminder to look at bioctl, same kernel diff from, OK jsing

Reply via email to