2003-07-28 13:00:14

by Andries E. Brouwer

[permalink] [raw]
Subject: [PATCH] Re: 2.6.0-test1 on alpha : disk label numbering trouble

From: "Ghozlane Toumi" <[email protected]>

> > I'm trying to run 2.6.0-test1 on an alpha box,
> > and apparently, the osf partition numbering is wrong:

2.4:
sda: sda3 sda4 sda5

2.6:
sda: sda1 sda2 sda3

OK, I see what happened - viro changed things a little,
maybe by mistake.

I suppose the below will give you your original numbering again.
(Please confirm.)

Andries

--- osf.c~ Wed Mar 5 04:29:32 2003
+++ osf.c Mon Jul 28 16:13:03 2003
@@ -67,9 +67,10 @@
if (slot == state->limit)
break;
if (le32_to_cpu(partition->p_size))
- put_partition(state, slot++,
+ put_partition(state, slot,
le32_to_cpu(partition->p_offset),
le32_to_cpu(partition->p_size));
+ slot++;
}
printk("\n");
put_dev_sector(sect);


2003-07-28 13:39:53

by Ghozlane Toumi

[permalink] [raw]
Subject: Re: [PATCH] Re: 2.6.0-test1 on alpha : disk label numbering trouble

From: <[email protected]>

> 2.4:
> sda: sda3 sda4 sda5
>
> 2.6:
> sda: sda1 sda2 sda3
>
> OK, I see what happened - viro changed things a little,
> maybe by mistake.
>
> I suppose the below will give you your original numbering again.
> (Please confirm.)

yes, it works , thanks.
quickly checking viro's changes in this area, it seems other partitions
schemes are touched by the same problem...

> --- osf.c~ Wed Mar 5 04:29:32 2003
> +++ osf.c Mon Jul 28 16:13:03 2003
> @@ -67,9 +67,10 @@
> if (slot == state->limit)
> break;
> if (le32_to_cpu(partition->p_size))
> - put_partition(state, slot++,
> + put_partition(state, slot,
> le32_to_cpu(partition->p_offset),
> le32_to_cpu(partition->p_size));
> + slot++;
> }
> printk("\n");
> put_dev_sector(sect);

thanks,

ghoz