summaryrefslogtreecommitdiffstats
path: root/fdisk
diff options
context:
space:
mode:
authorKarel Zak2008-11-13 14:56:17 +0100
committerKarel Zak2008-11-13 14:56:17 +0100
commit197d1d7c794a383cd3b9d3c0c1437d9860af9da2 (patch)
tree6d8df4eae92dea06b6b20c342f98cc329b3b2947 /fdisk
parentsfdisk: fix Compilation Error (diff)
downloadkernel-qcow2-util-linux-197d1d7c794a383cd3b9d3c0c1437d9860af9da2.tar.gz
kernel-qcow2-util-linux-197d1d7c794a383cd3b9d3c0c1437d9860af9da2.tar.xz
kernel-qcow2-util-linux-197d1d7c794a383cd3b9d3c0c1437d9860af9da2.zip
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>
Diffstat (limited to 'fdisk')
-rw-r--r--fdisk/fdisk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fdisk/fdisk.c b/fdisk/fdisk.c
index a8dfe5d2d..ff7ac6728 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;