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

From: Andries.Brouwer@cwi.nl
Date: Mon Jul 28 2003 - 08:15:24 EST


        From: "Ghozlane Toumi" <gtoumi@laposte.net>

> > 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);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Jul 31 2003 - 22:00:35 EST