[U-Boot] [PATCH v2 2/7] disk: part: Extend API to get partition info
Simon Glass
sjg at chromium.org
Sat Jan 5 01:56:19 UTC 2019
On Wed, 12 Dec 2018 at 10:12, Ruslan Trofymenko
<ruslan.trofymenko at linaro.org> wrote:
>
> This patch adds part_get_info_by_dev_and_name_or_num() function which
> allows us to get partition info from its number or name. Partition of
> interest is specified by string like "device_num:partition_number" or
> "device_num#partition_name".
>
> The patch was extracted from [1].
>
> [1] https://android-review.googlesource.com/c/platform/external/u-boot/+/729880/2
>
> Signed-off-by: Ruslan Trofymenko <ruslan.trofymenko at linaro.org>
> Reviewed-by: Alistair Strachan <astrachan at google.com>
> Reviewed-by: Sam Protsenko <semen.protsenko at linaro.org>
> ---
> Changes in v2:
> * Error codes are changed to -EINVAL instead of -1
>
> disk/part.c | 68 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> include/part.h | 21 ++++++++++++++++++
> 2 files changed, 89 insertions(+)
Reviewed-by: Simon Glass <sjg at chromium.org>
More information about the U-Boot
mailing list