Re: [PATCH 2.6.7-mm1] MBR centralization

From: Andries Brouwer
Date: Wed Jun 23 2004 - 16:42:16 EST


On Wed, Jun 23, 2004 at 11:15:49PM +0200, FabF wrote:
>
> -DOS_EXTENDED_PARTITION washing#2
> (we don't want magic numbers, do we ?)
> -Remove use of <= 4 to < DOS_EXTENDED_PARTITION where needed

> - for (slot = 1; slot <= 4; slot++, p++) {
> + for (slot = 1; slot < DOS_EXTENDED_PARTITION; slot++, p++) {

Maybe you do not know, but the 5 of DOS_EXTENDED_PARTITION is the
value written in the sys_ind field of a partition.

It is totally unrelated to the 4 that is the upper bound of the
loop over the four primary partitions in a DOS-type partition table.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/