]> Git Repo - linux.git/commit - block/partitions/sun.c
[DISKLABEL] SUN: Fix signed int usage for sector count
authorJeff Mahoney <[email protected]>
Fri, 25 Aug 2006 22:58:57 +0000 (15:58 -0700)
committerDavid S. Miller <[email protected]>
Sun, 27 Aug 2006 00:55:55 +0000 (17:55 -0700)
commit81a42d298d8bd1b96be4bd459494f25fdd99b594
tree7b562fabab424bcb68812da1175f0a78cd413ca0
parent5fec811e99bb6f537e67b6bcbe9fe6505aa8a114
[DISKLABEL] SUN: Fix signed int usage for sector count

The current sun disklabel code uses a signed int for the sector count.
When partitions larger than 1 TB are used, the cast to a sector_t causes
the partition sizes to be invalid:

 # cat /proc/paritions | grep sdan
   66   112 2146435072 sdan
   66   115 9223372036853660736 sdan3
   66   120 9223372036853660736 sdan8

This patch switches the sector count to an unsigned int to fix this.

Signed-off-by: Jeff Mahoney <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
fs/partitions/sun.c
This page took 0.051103 seconds and 4 git commands to generate.