Skip to contentSkip to conversation

struct gendisk max_p gone in 2.5.x

DISCUSSION [email protected] 1 participant 1 message Jan 15, 2002

lore
Share & tools
lore
#0 lore raw
Quoted 3 lines

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