Limit the maximum size of softraid crypto volumes that can be created to
authorjsing <jsing@openbsd.org>
Mon, 12 Jun 2017 16:39:51 +0000 (16:39 +0000)
committerjsing <jsing@openbsd.org>
Mon, 12 Jun 2017 16:39:51 +0000 (16:39 +0000)
commit4fe5a5deb319db7fe86b4f2cdc52c5b6e9aad276
treedef4d7963f4beeb277853a34130842b60b80e2a9
parent67b0176846ca60b9c580da5186893752a354a32b
Limit the maximum size of softraid crypto volumes that can be created to
the size that is currently supported (a data area of 16TB, or
2^32 * 32 + 528 blocks including the softraid metadata/boot area), rather
than successfully creating the volume and then failing during resource
allocation (without properly reporting why it failed).

Found the hard way by sharon s. <mymlact at gmx dot com>
sys/dev/softraid_crypto.c
sys/dev/softraidvar.h