Re: struct gendisk max_p gone in 2.5.x

From: Andries.Brouwer@cwi.nl
Date: Tue Jan 15 2002 - 15:31:16 EST


> The max_p member of struct gendisk was deleted in 2.5.x.
> Is there a different preferred method for partition detection code
> to know the maximum number of partitions it's allowed to present?

Instead of using g->max_p you can use 1<<g->minor_shift .

Andries
-
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 : Tue Jan 15 2002 - 21:00:53 EST