]> err.no Git - util-linux/commitdiff
fdisk: cannot create partition with starting beyond 1 TB
authorKarel Zak <kzak@redhat.com>
Thu, 13 Nov 2008 13:56:17 +0000 (14:56 +0100)
committerKarel Zak <kzak@redhat.com>
Fri, 12 Dec 2008 11:30:42 +0000 (12:30 +0100)
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 <kzak@redhat.com>
fdisk/fdisk.c

index 0559717d8b4b47d269a4b840f72308cff8bb9e07..33679f5a9609dd75816520ec06c6c591c031204e 100644 (file)
@@ -2033,7 +2033,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;