[PATCH] Make number of GPT partitions a configurable option
Santosh Sivaraj
santosh at fossix.org
Thu Jan 9 11:29:33 EST 2014
* Santosh Sivaraj <santosh at fossix.org> wrote (on 2014-01-09 21:36:41 +0530):
adding list, missed it.
> * Jean-Christophe PLAGNIOL-VILLARD <plagnioj at jcrosoft.com> wrote (on 2014-01-09 08:29:14 +0100):
>
> > On 15:07 Wed 08 Jan , Sascha Hauer wrote:
> > > Hi Santosh,
> > >
> > > On Wed, Jan 08, 2014 at 08:15:39AM +0530, Santosh Sivaraj wrote:
> > > > Theoritically there is no limit for the partitions that can be created
> > > > based on EFI/GPT, so make the number of partitions that can be visible
> > > > in barebox a configurable option.
> > > >
> > > > Signed-off-by: Santosh Sivaraj <santosh at fossix.org>
> > > > ---
> > > > common/partitions/Kconfig | 5 +++++
> > > > common/partitions/parser.h | 2 +-
> > > > 2 files changed, 6 insertions(+), 1 deletion(-)
> > > >
> > > > diff --git a/common/partitions/Kconfig b/common/partitions/Kconfig
> > > > index 90238ad..f3353dd 100644
> > > > --- a/common/partitions/Kconfig
> > > > +++ b/common/partitions/Kconfig
> > > > @@ -31,3 +31,8 @@ config PARTITION_DISK_EFI_GPT_COMPARE
> > > > depends on PARTITION_DISK_EFI
> > > > default y
> > > > bool "EFI: GPT: compare primary and Alternate GPT header for validity"
> > > > +
> > > > +config MAX_PARTITIONS
> > > > + depends on PARTITION_DISK_EFI
> > > > + int "Maximum of partitions needed to be supported on a GPT"
> > > > + default 8
> > >
> > > Can we instead allocate the partitions dynamically? This limitation to
> > > eight partitions we currently have is not nice, but making it
> > > configurable is not a proper fix.
> >
> > agreed but a limit will be good too
> >
> > Best Regards,
> > J.
> > >
> > > Sascha
> > >
>
> We could keep a configurable maximum, with a high default, but do the allocation
> dynamically. I will try to send in a patch, we can discuss how it needs to be
> done over it.
>
> Thanks,
> Santosh
--
More information about the barebox
mailing list