]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libfdisk: fix partition move/resize code
authorKarel Zak <kzak@redhat.com>
Thu, 17 Sep 2015 10:27:58 +0000 (12:27 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 2 Nov 2015 09:13:36 +0000 (10:13 +0100)
commit43cb0288722722eadab57363b509e9d2d5385fb8
treed126b69aef254f98c61fb9a85a4f296b38e3bd49
parent045e00d7e9731bf00daefac706c514b78638077d
libfdisk: fix partition move/resize code

- verify that the new partition fits to the area if the size of the
  has not been modified
- fix remaining space calculation (yes, brown-paper-bag bug..)
- offer also space before first partition as free space

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