fdisk: sync up with some util-linux 2.31 behavior
authorDenys Vlasenko <vda.linux@googlemail.com>
Wed, 25 Jul 2018 11:45:36 +0000 (13:45 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Mon, 30 Jul 2018 16:02:27 +0000 (18:02 +0200)
commit1c3bcfc79f4b6a1d6e8cd04e6a36f64a57753b2f
treeacbf6333c9e46acc48bf757798da0ab49027a1b6
parent096ccd6a691f3c5e5cdae1a67fd45b9340b14f27
fdisk: sync up with some util-linux 2.31 behavior

= display default is no longer in cylinders
= +sizeC is no longer supported
= add +sizeT suffix - terabytes are here
= K,M,G,T and k,m,g,t suffixes all are binary, not decimal
= +sizeM results in last sector +(size * 1Mbyte - 1), not +(size * 1Mbyte)
= fix comparison to "YES" answer for sgi/sun

function                                             old     new   delta
read_int                                             492     519     +27
fdisk_main                                          2644    2640      -4
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/1 up/down: 27/-4)              Total: 23 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
util-linux/fdisk.c
util-linux/fdisk_sgi.c
util-linux/fdisk_sun.c