Refactor editor_allocspace() into easier to follow pieces.
authorkrw <krw@openbsd.org>
Wed, 28 Jun 2023 12:12:48 +0000 (12:12 +0000)
committerkrw <krw@openbsd.org>
Wed, 28 Jun 2023 12:12:48 +0000 (12:12 +0000)
commit756bef515602d6110fe462d63e36f9e4c96f2700
tree0744e258d9f9c577de4fd49402cb3d700bb52032
parenta409c69c01f3e2e9fc6518562f978b115153426c
Refactor editor_allocspace() into easier to follow pieces.

editor_allocspace() interates over alloc_tables calling
allocate_space().  allocate_space() iterates over
space_allocations calling allocate_partition().
allocate_partition() calls allocate_diskchunk() which finds disk
space for the partition.

No intentional functional change.

ok otto@
sbin/disklabel/editor.c