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

Joel Soete soete.joel@tiscali.be
Sun, 09 Nov 2003 13:50:49 +0000


Ok Ok :)

Matthew you have right:

Joel Soete wrote:
> ----------><----------
> --- uaccess.h.orig    2004-04-20 19:58:08.000000000 +0200
> +++ uaccess.h-t2    2004-04-20 20:10:41.000000000 +0200
> @@ -42,8 +42,8 @@
>  #if BITS_PER_LONG == 32
>  #define LDD_KERNEL(ptr) __get_kernel_bad();
>  #define LDD_USER(ptr) __get_user_bad();
> -#define STD_KERNEL(x, ptr) __put_kernel_asm64((u32)x,ptr)
> -#define STD_USER(x, ptr) __put_user_asm64((u32)x,ptr)
> +#define STD_KERNEL(x, ptr) __put_kernel_asm64((u64)x,ptr)
> +#define STD_USER(x, ptr) __put_user_asm64((u64)x,ptr)
>  #else
>  #define LDD_KERNEL(ptr) __get_kernel_asm("ldd",ptr)
>  #define LDD_USER(ptr) __get_user_asm("ldd",ptr)
> ----------><----------
I just test it and it seems to be a fix (among others):
hpalin:~# fdisk /dev/sda

Command (m for help): p

Disk /dev/sda: 4294 MB, 4294816768 bytes
133 heads, 62 sectors/track, 1017 cylinders
Units = cylinders of 8246 * 512 = 4221952 bytes

    Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          16       65937   f0  Linux/PA-RISC boot
/dev/sda2              17          48      131936   fd  Linux raid 
autodetect
/dev/sda3              49          79      127813   fd  Linux raid 
autodetect
/dev/sda4              80         993     3768422    5  Extended
/dev/sda5              80         496     1719260   fd  Linux raid 
autodetect
/dev/sda6             497         558      255595   fd  Linux raid 
autodetect
/dev/sda7             559         589      127782   fd  Linux raid 
autodetect
/dev/sda8             590         620      127782   fd  Linux raid 
autodetect
/dev/sda9             621         993     1537848   83  Linux

Can somebody re-test it and ci for me?

hth,
	Joel