Check for offline chunks first, then check for keydisks
authorkn <kn@openbsd.org>
Mon, 14 Nov 2022 13:39:37 +0000 (13:39 +0000)
committerkn <kn@openbsd.org>
Mon, 14 Nov 2022 13:39:37 +0000 (13:39 +0000)
commit6dfaf0dfc1ad2a0831bbce5417be20f1b1ef9b0d
tree4d2661a6edd40dd470e4487a02d6168764260bfb
parent8fd2446c33db28ce9bd7d7028ae91d604b4a605f
Check for offline chunks first, then check for keydisks

Like keydisks, offline data chunks also report a size of zero, so skipping
zero sized chunks before doing the offline check means not printing the
"softraid chunk N not online - skipping..." warning.

Restore order to make this warning appear on degraded volumes again.
usr.sbin/installboot/softraid.c