]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libfdisk: (dos) be more robust about max number of partitions
authorKarel Zak <kzak@redhat.com>
Mon, 18 May 2020 12:13:33 +0000 (14:13 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 18 May 2020 12:13:33 +0000 (14:13 +0200)
commit10016339916c27a4f5ba7d3e3f07644107bf182f
treea547a80b40527207914ca6272f47c279bcd9b667
parent191836bec292547393e8dd5e8d5148e8dbfa210b
libfdisk: (dos) be more robust about max number of partitions

It seems the previous MAXIMUM_PARTS bug fix has not been generic
enough. Let's use the check for all dos_add_partition().

This patch also remove libfdisk attempt to be smart and search for
unused primary partition. If you need more than 60 partition in MBR
than you have a different problem that cannot be solved by libfdisk
...

References: http://github.com/karelzak/util-linux/commit/b80fb30a5b79ce2cc8c7486e1435ec061aa79e2f
Addresses: https://github.com/karelzak/util-linux/issues/1022
Signed-off-by: Karel Zak <kzak@redhat.com>
libfdisk/src/dos.c