mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Re: struct gendisk max_p gone in 2.5.x
@ 2002-01-15 20:31 Andries.Brouwer
  0 siblings, 0 replies; 3+ messages in thread
From: Andries.Brouwer @ 2002-01-15 20:31 UTC (permalink / raw)
  To: Matt_Domsch, linux-kernel

> 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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: struct gendisk max_p gone in 2.5.x
@ 2002-01-14 19:30 Matt_Domsch
  0 siblings, 0 replies; 3+ messages in thread
From: Matt_Domsch @ 2002-01-14 19:30 UTC (permalink / raw)
  To: linux-kernel

> The max_p member of struct gendisk was deleted in 2.5.x.  

I found it.  1 << gd->minor_shift, per Andries Brouwer's patch of June 2001.
-Matt
--
Matt Domsch
Sr. Software Engineer
Dell Linux Solutions www.dell.com/linux
#1 US Linux Server provider with 24.5% (IDC Dec 2001)
#2 Worldwide Linux Server provider with 18.2% (IDC Dec 2001)

^ permalink raw reply	[flat|nested] 3+ messages in thread

* struct gendisk max_p gone in 2.5.x
@ 2002-01-14 18:49 Matt_Domsch
  0 siblings, 0 replies; 3+ messages in thread
From: Matt_Domsch @ 2002-01-14 18:49 UTC (permalink / raw)
  To: linux-kernel

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?  Previously I was using this
field in the GPT detection code to only present the first max_p partitions
(because GPT allows an unlimited number of partitions).  For SCSI disks with
the current major/minor numbering scheme, it shouldn't create more than 15
partitions; for IDE, 63.

Thanks,
Matt

--
Matt Domsch
Sr. Software Engineer
Dell Linux Solutions www.dell.com/linux
#1 US Linux Server provider with 24.5% (IDC Dec 2001)
#2 Worldwide Linux Server provider with 18.2% (IDC Dec 2001)

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-01-15 20:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-01-15 20:31 struct gendisk max_p gone in 2.5.x Andries.Brouwer
  -- strict thread matches above, loose matches on Subject: below --
2002-01-14 19:30 Matt_Domsch
2002-01-14 18:49 Matt_Domsch

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®