From: Karel Zak Date: Thu, 13 Nov 2008 13:56:17 +0000 (+0100) Subject: fdisk: cannot create partition with starting beyond 1 TB X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=197d1d7c794a383cd3b9d3c0c1437d9860af9da2;p=util-linux fdisk: cannot create partition with starting beyond 1 TB fdisk(8) uses "unsigned long long" for all internal calculations -- let use it for start of partition too. Address-Red-Hat-Bugzilla: #471369 Signed-off-by: Karel Zak --- diff --git a/fdisk/fdisk.c b/fdisk/fdisk.c index a8dfe5d2..ff7ac672 100644 --- a/fdisk/fdisk.c +++ b/fdisk/fdisk.c @@ -2049,7 +2049,7 @@ add_partition(int n, int sys) { do { temp = start; for (i = 0; i < partitions; i++) { - int lastplusoff; + unsigned int lastplusoff; if (start == ptes[i].offset) start += sector_offset;