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)
commit6de1daf64b1acc3d2249ceed34756435a1b13d98
tree2c2b1b260c669524f0aa8e862be249bbf42dc0b0
parent8db1fa5a0da78c1a9a16882f2e49beac3ccf5308
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