]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libfdisk: (sun) fix creation of whole disk partition
authorMikhail Vorobyov <m.vorobyov@cs.msu.ru>
Thu, 2 Nov 2017 01:04:42 +0000 (04:04 +0300)
committerKarel Zak <kzak@redhat.com>
Thu, 14 Dec 2017 14:25:39 +0000 (15:25 +0100)
commit6b13880f365b78329e5423426617f0bf12bab326
tree130f659f1eb24b0c1417c24e91aa18e4d7fbccbc
parent39ab4e85da8c39166aa6cd093248bd146978fb00
libfdisk: (sun) fix creation of whole disk partition

sun_add_partition() allowed the 1st sector to be 0 for the 3rd partition
only if that sector was free or if other partitions covered the whole
disk. Now it's always allowed for the 1st sector to be set to 0 for
the 3rd partition.

[kzak@redhat.com: - print info about "wholedisk" before "First sector" dialog for 3rd partition
                  - default to 0 for 3rd partition start sector]

Signed-off-by: Mikhail Vorobyov <m.vorobyov@cs.msu.ru>
Signed-off-by: Karel Zak <kzak@redhat.com>
libfdisk/src/sun.c