fdisk: remove "Partition N does not end on cylinder boundary" message
authorDenys Vlasenko <vda.linux@googlemail.com>
Sat, 26 May 2018 16:51:18 +0000 (18:51 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sat, 26 May 2018 16:51:18 +0000 (18:51 +0200)
fdisk from util-linux 2.31 (maybe earlier) does not print this.

function                                             old     new   delta
check_consistency                                    449     399     -50

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

index 7275535e6b08eff070c4de2b6a939994287238ba..cdcba0a03767ec2c35310c6192b2abc446b79711 100644 (file)
@@ -2004,12 +2004,6 @@ check_consistency(const struct partition *p, int partition)
                printf("     phys=(%u,%u,%u) ", pec, peh, pes);
                printf("logical=(%u,%u,%u)\n", lec, leh, les);
        }
-
-/* Ending on cylinder boundary? */
-       if (peh != (g_heads - 1) || pes != g_sectors) {
-               printf("Partition %u does not end on cylinder boundary\n",
-                       partition + 1);
-       }
 }
 
 static void