[PATCH v2 7/8] cmd: ubi: allow creating volume with all free spaces in ubi_create_vol

Simon Glass sjg at chromium.org
Wed Apr 22 00:47:03 CEST 2026


On 2026-04-21T08:35:39, Weijie Gao <weijie.gao at mediatek.com> wrote:
> cmd: ubi: allow creating volume with all free spaces in ubi_create_vol
>
> Although the ubi command itself supports creating volume with all
> free spaces, the api ubi_create_vol() does not.
>
> Since negative size is invalid, this patch replaces negative size
> with all free space size in ubi_create_vol().
>
> Signed-off-by: Weijie Gao <weijie.gao at mediatek.com>
>
> cmd/ubi.c | 6 +++++-
>  1 file changed, 5 insertions(+), 1 deletion(-)

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list