Re: [PATCH 1/2] partitions: Increase MAX_PARTITION to 128

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 02.06.21 09:15, Sascha Hauer wrote:
> Having MAX_PARTITION defined to 8 is enough for a DOS partition table,
> but not for GPT. Increase it to the maximum GPT supports. It might be
> even better to allocate the partitions dynamically, but for nor take the
> easy way out.

Given that struct partition_desc is only ever dynamically allocated, I think
that's ok.

> Signed-off-by: Sascha Hauer <s.hauer@xxxxxxxxxxxxxx>

Reviwed-by: Ahmad Fatoum <a.fatoum@xxxxxxxxxxxxxx>

> ---
>  common/partitions/parser.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/common/partitions/parser.h b/common/partitions/parser.h
> index 8ad134a9aa..69508932b3 100644
> --- a/common/partitions/parser.h
> +++ b/common/partitions/parser.h
> @@ -11,7 +11,7 @@
>  #include <filetype.h>
>  #include <linux/list.h>
>  
> -#define MAX_PARTITION		8
> +#define MAX_PARTITION		128
>  #define MAX_PARTITION_NAME	38
>  
>  struct partition {
> 

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox



[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux