Messages in this thread | | | From | Andries.Brouwer@cwi ... | Date | Tue, 15 Jan 2002 20:31:16 GMT | Subject | Re: struct gendisk max_p gone in 2.5.x |
| |
> 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/
| |