]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libfdisk: use fdisk_add_partition() for unused partno
authorKarel Zak <kzak@redhat.com>
Tue, 10 May 2016 08:52:31 +0000 (10:52 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 10 May 2016 08:52:31 +0000 (10:52 +0200)
commita3a125b9227be82d84941062feaf3ddfde8265f7
tree1b973738a783d380aadcd267232f65724d139efb
parent94af67f2aaaafce58f495b2415e534a0c2508332
libfdisk: use fdisk_add_partition() for unused partno

For example:

   sfdisk -N <parno>

may address unused partition. In this case we need to redirect from
fdisk_set_partition() to fdisk_add_partition() and follow default
setting (used all free space).

Signed-off-by: Karel Zak <kzak@redhat.com>
libfdisk/src/partition.c