]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
partitions: increase MAX_SEARCH_PARTITIONS and move to part.h
authorAlison Chaiken <alison@peloton-tech.com>
Sun, 25 Jun 2017 23:43:22 +0000 (16:43 -0700)
committerTom Rini <trini@konsulko.com>
Fri, 4 Aug 2017 13:56:03 +0000 (09:56 -0400)
Move MAX_SEARCH_PARTITIONS to part.h so that functions in cmd
directory can find it.  At the same time, increase the value to
64 since some operating systems use many, and the resources
consumed by a larger value are minimal.

Changes since v6: none.

Signed-off-by: Alison Chaiken <alison@peloton-tech.com>
disk/part.c
include/part.h

index 491b02dc9c15ccbd8954a982ec2f802ae0f749d7..e640a55163f2d28f69bb869fd775317199b8154c 100644 (file)
@@ -388,7 +388,6 @@ cleanup:
 
 #define PART_UNSPECIFIED -2
 #define PART_AUTO -1
-#define MAX_SEARCH_PARTITIONS 16
 int blk_get_device_part_str(const char *ifname, const char *dev_part_str,
                             struct blk_desc **dev_desc,
                             disk_partition_t *info, int allow_whole_dev)
index 87b11112b8d85a457e763a8d028295788338f39d..22da60448233b496c2bef0c1a063890cce2bf149 100644 (file)
@@ -49,6 +49,7 @@ struct block_drvr {
 
 #define PART_NAME_LEN 32
 #define PART_TYPE_LEN 32
+#define MAX_SEARCH_PARTITIONS 64
 
 typedef struct disk_partition {
        lbaint_t        start;  /* # of first block in partition        */