summaryrefslogtreecommitdiffstats
path: root/usr.sbin/installboot/sparc64_softraid.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Provide clear errors when trying to install oversized boot loaderkn2020-06-081-1/+2
| | | | | | | | | | | | | | | | 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
* When system calls indicate an error they return -1, not some arbitraryderaadt2019-06-281-2/+2
| | | | | | value < 0. errno is only updated in this case. Change all (most?) callers of syscalls to follow this better, and let's see if this strictness helps us in the future.
* Nuke trailing whitespace to avoid cluttering possible upcoming diffs.krw2015-10-031-2/+2
|
* first batch of cleanup to programs based upon the namespace cleanupsderaadt2015-01-161-2/+2
| | | | | | | in net/pfvar.h sys/proc.h sys/ucred.h arpa/nameser.h change to PATH_MAX, reduce use of MIN() and MAX(), HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc etc ok millert guenther, some review by doug
* Rework installboot and use a single directory with a single makefile. Thejsing2014-01-191-0/+101
directory per machine model is arguably cleaner, however it does not play well with distrib/special and instbin. Discussed with deraadt@