Use size of largest chunk of free space, not total of all chunks
authorkrw <krw@openbsd.org>
Mon, 16 Jan 2023 16:49:16 +0000 (16:49 +0000)
committerkrw <krw@openbsd.org>
Mon, 16 Jan 2023 16:49:16 +0000 (16:49 +0000)
commit2fcfb0f56d3063cf7141344178a90f2caedcb3c5
tree28ae597078ce4f2529216c9fab919578a0491b85
parentc602d4c893bf74401f687cebbae3aaccca542ef7
Use size of largest chunk of free space, not total of all chunks
of free space, when checking for sufficient space to add a
partition. As a side-benefit the list of free chunks only needs
to be built once.
sbin/disklabel/editor.c