]> git.baikalelectronics.ru Git - uboot.git/commit
cmd: ubi: Add 'ubi list' command for printing list of all UBI volumes
authorPali Rohár <pali@kernel.org>
Mon, 12 Sep 2022 09:38:55 +0000 (11:38 +0200)
committerTom Rini <trini@konsulko.com>
Wed, 12 Oct 2022 12:55:31 +0000 (08:55 -0400)
commit1458e635d14954586000a258a7bb278176b6fe5f
tree2c2b1b260c669524f0aa8e862be249bbf42dc0b0
parent832cdeef79f4e9ecea65f4027c1d6a13abd3fd1f
cmd: ubi: Add 'ubi list' command for printing list of all UBI volumes

To allow easily iterate over all UBI volumes, add a new command which
either print all user UBI volumes on output or set them into env variable.

As UBI volumes can have arbitrary name/label, in most cases it is useful to
iterate them by their numbers. This can be achieved by -numeric flag.

This functionality is similar to already existing 'part list' command which
prints partitions on formatted block device.

Signed-off-by: Pali Rohár <pali@kernel.org>
cmd/ubi.c