Give checkdisklabel() a new parameter supplying the dev_t of the
authorkrw <krw@openbsd.org>
Tue, 11 Oct 2022 23:39:07 +0000 (23:39 +0000)
committerkrw <krw@openbsd.org>
Tue, 11 Oct 2022 23:39:07 +0000 (23:39 +0000)
commit6db064f3b5beb8c471ae4f814748d5fb5c802dad
treee33b6014132a88d2efed48427a55d0ef0f5bac09
parent0a3fb11d8f988dff9bc7c6d306eb14f8a6d4e6d0
Give checkdisklabel() a new parameter supplying the dev_t of the
device whose disklabel is being checked. Within checkdisklabel()
use this information to discover a device name iff (sic) the
label is an obsolete version. Use the name to generate a
meaningful warning message asking the user to rewrite the
disklabel and thus promote it to the current version.

Suggested by, feedback from and ok deraadt@
sys/arch/alpha/alpha/disksubr.c
sys/arch/hppa/hppa/disksubr.c
sys/arch/luna88k/luna88k/disksubr.c
sys/arch/macppc/macppc/disksubr.c
sys/arch/sparc64/sparc64/disksubr.c
sys/kern/subr_disk.c
sys/sys/disklabel.h