libfdisk: add FDISK_LABEL_FL_ADDPART_NOPARTNO
Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
parent
9ffeb235d6
commit
baa7cccc3a
4 changed files with 14 additions and 4 deletions
|
@ -760,10 +760,7 @@ static void new_partition(struct fdisk_context *cxt)
|
|||
if (warn_geometry(cxt))
|
||||
return;
|
||||
|
||||
if (fdisk_is_disklabel(cxt, SUN) ||
|
||||
fdisk_is_disklabel(cxt, SGI) ||
|
||||
fdisk_is_disklabel(cxt, GPT))
|
||||
|
||||
if (!(cxt->label->flags & FDISK_LABEL_FL_ADDPART_NOPARTNO))
|
||||
partnum = get_partition_dflt(cxt, 0, cxt->label->nparts_max,
|
||||
cxt->label->nparts_cur + 1);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue