Addresses: https://github.com/karelzak/util-linux/issues/1018
Signed-off-by: Karel Zak <kzak@redhat.com>
if (last + grain < cxt->total_sectors - 1)
free_sectors = 1;
- if (!free_primary && cxt->label->nparts_max >= MAXIMUM_PARTS) {
- fdisk_info(cxt, _("The maximum number of partitions has "
+ if (cxt->label->nparts_max >= MAXIMUM_PARTS) {
+ fdisk_warnx(cxt, _("The maximum number of partitions has "
"been created."));
return -EINVAL;
}