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>
Wed, 25 Jul 2018 11:52:30 +0000 (13:52 +0200)
commitc104549b483c83acdf3e12cfe3df2c6437fa6926
treee5ab8683d8cb94e3dbf1c3531c9f6de070ea358c
parent163e637ffb47425d9f5027755b7cb4877d77b0cb
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