Re: [PATCH] bsd disklabel detection

From: Ion Badulescu (ionut@moisil.cs.columbia.edu)
Date: Thu Mar 23 2000 - 14:16:53 EST


On Thu, 23 Mar 2000 Andries.Brouwer@cwi.nl wrote:

> So, if you want to detect BSDI at the outer level, you should not
> interrupt the msdos code, but add a new item to the list in check.c.
> Such a new bsd.c would be very similar to osf.c. If it is not
> the same, add it.
>
> But the osf.c stuff looks so similar to the bsd stuff, even the magic
> numbers are the same, that I conjecture that you already have what you want,
> no patch needed, just enable CONFIG_OSF_PARTITION.

You're right, except for one thing: msdos_partition is called before
osf_partition. Since the disklabel does have the 0x55aa signature,
msdos_partition will be hapy with whatever junk it finds in the partition
table, and thus osf_partition will never get a chance to run.

Would it be reasonable to switch the two, and also to update the docs so
that other people will know what to enable? If so, I'd be happy to come up
with the patch.

Thanks,
Ion

-- 
  It is better to keep your mouth shut and be thought a fool,
            than to open it and remove all doubt.

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Mar 23 2000 - 21:00:38 EST