]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libfdisk: count gaps to possible size when resize
authorKarel Zak <kzak@redhat.com>
Mon, 17 Sep 2018 09:58:50 +0000 (11:58 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 17 Sep 2018 09:58:50 +0000 (11:58 +0200)
commit2f35c1ead621f42f32f7777232568cb03185b473
treed5a9bcf8d5efe33d706196f0f8aec518eefa6d6b
parent652cb1cd26a9fd62653e112b04a9512f5f42578c
libfdisk: count gaps to possible size when resize

The current code counts only partition sizes when it counts possible
space, but we have gaps between the partitions. It seems better to
count all based on offsets rather than sizes.

Addresses: https://github.com/karelzak/util-linux/issues/693
Signed-off-by: Karel Zak <kzak@redhat.com>
libfdisk/src/partition.c