[git commit] fdisk: remove "Partition N does not end on cylinder boundary" message

Denys Vlasenko vda.linux at googlemail.com
Sat May 26 16:51:18 UTC 2018


commit: https://git.busybox.net/busybox/commit/?id=8bc418f07eab79a9c8d26594629799f6157a9466
branch: https://git.busybox.net/busybox/commit/?id=refs/heads/master

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 at googlemail.com>
---
 util-linux/fdisk.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/util-linux/fdisk.c b/util-linux/fdisk.c
index 7275535e6..cdcba0a03 100644
--- a/util-linux/fdisk.c
+++ b/util-linux/fdisk.c
@@ -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


More information about the busybox-cvs mailing list