[parisc-linux] fdisk problems 2.4 <-> 2.6

Matthew Wilcox willy@debian.org
Thu, 6 Nov 2003 22:29:58 +0000


On Wed, Nov 05, 2003 at 09:21:14PM +0100, Ruediger Scholz wrote:
> it's me again. I repartioned a IBM-hd with 4330 MB but when running 
> fdisk with 2.6.0-test8-pa4, fdisk  told me:
> 
> --------><------------
> gandalf:~# fdisk /dev/sdb
> 
> Befehl (m für Hilfe): p
> 
> Platte /dev/sdb: 40 MByte, 40239104 Byte

Oh oh.  We have an interesting problem here.

> Platte /dev/sdb: 4335 MByte, 4335206400 Byte

4335206400 - 4294967296 = 40239104

So we've lost the top 32 bits of the value.  Can you run it under strace
and tell me what ioctls fdisk is calling?  I bet it's calling BLKGETSIZE64
and our put_user() is broken.

-- 
"It's not Hollywood.  War is real, war is primarily not about defeat or
victory, it is about death.  I've seen thousands and thousands of dead bodies.
Do you think I want to have an academic debate on this subject?" -- Robert Fisk