Hello Weijie,

On 13.05.26 10:02, Weijie Gao wrote:
This patch series expose more ubi helpers to allow the ubi environment to
create ubi env volumes before loading if they're not exist.

Changes:
v4: Adjust command message. Error messages will be printed in both command
      and api call.
     Add parameter check for "ubi rename" subcommand
     Fix duplicated call to ubi_require_volume() in command.
     Squash api function comments.
     Change all return value to negative.
     Add another kconfig option to control whether to create static volume.
     Read environment volume only when it exists or has been created.

v3: Fix command messages
     Fix some incorrect code flow and error handling
     Correct dynamic parameter type
     Add comments for exported functions

v2: Add const qualifier for char */void * in function parameters
     Adjust normal command message

Weijie Gao (10):
   ubi: remove unnecessary extern directive from function prototypes
   cmd: ubi: mark read-only function parameters with const
   cmd: ubi: use void * for buf parameter in ubi_volume_read
   cmd: ubifs: mark string parameters with const
   cmd: ubi: change the type of parameter dynamic to bool
   cmd: ubi: change all positive error return value to negative
   cmd: ubi: reorganize command messages
   cmd: ubi: export more APIs to public
   cmd: ubi: allow creating volume with all free spaces in ubi_create_vol
   env: ubi: add support to create environment volume if it does not
     exist

  cmd/ubi.c             | 276 +++++++++++++++++++++++++++---------------
  cmd/ubifs.c           |   2 +-
  env/Kconfig           |  20 +++
  env/ubi.c             |  65 ++++++++--
  fs/ubifs/super.c      |   2 +-
  fs/ubifs/ubifs.c      |   2 +-
  include/ubi_uboot.h   | 106 ++++++++++++++--
  include/ubifs_uboot.h |   4 +-
  8 files changed, 355 insertions(+), 122 deletions(-)


Applied the whole series to u-boot-ubi.git

Thanks!

bye,
Heiko

--
Nabla Software Engineering
HRB 40522 Augsburg
Phone: +49 821 45592596
E-Mail: [email protected]
Geschäftsführer : Stefano Babic

Reply via email to