File util-linux-2.14.1-fdisk-cannot-create-partition-beyond-1TB.patch of Package util-linux
From 197d1d7c794a383cd3b9d3c0c1437d9860af9da2 Mon Sep 17 00:00:00 2001
From: Karel Zak <kzak@redhat.com>
Date: Thu, 13 Nov 2008 14:56:17 +0100
Subject: [PATCH] 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 <kzak@redhat.com>
---
fdisk/fdisk.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
Index: util-linux-ng-2.14.1/fdisk/fdisk.c
===================================================================
--- util-linux-ng-2.14.1.orig/fdisk/fdisk.c 2010-05-25 15:05:10.000000000 +0200
+++ util-linux-ng-2.14.1/fdisk/fdisk.c 2010-05-25 15:05:15.000000000 +0200
@@ -2046,7 +2046,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;