]> 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, 2 Nov 2017 09:43:27 +0000 (10:43 +0100)
commit27895be26074780aac5a849514b2a6f8560adfcd
treec2590cbf1e60dd0669109cc6121ace6994495f08
parent5f538ac40c0d215b6c9a881effe4c3b214366715
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