]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libfdisk: (gpt) fix size-1 error
authorKarel Zak <kzak@redhat.com>
Tue, 22 Aug 2017 12:48:14 +0000 (14:48 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 20 Sep 2017 12:20:19 +0000 (14:20 +0200)
commita0dae7cf46810f6d0df7768653ed16ce2b3fbdf3
treee48c108e85837eae55419902faad42882c872bcc
parent4436ff231bc3811920bff54162981c0fa889f26b
libfdisk: (gpt) fix size-1 error

If partition does not require alignment, then don't call LBA align
function and don't use size-=1 (fdisk_align_lba_in_range() returns
unmodified size and we call size=-1 more than once for the same size).

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