Skip to content

mesh: Configuration storage re-org

Inga Stotland linux-bluetooth 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest10 patches 3 repliesIn review
  2. v210 patches 0 repliesSuperseded
  3. v19 patches 9 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10mesh: Move network config setup from storage.c to node.cmesh/node.c mesh/storage.c+28 -390 replies
2/10mesh: Rename mesh-db.c to mesh-config-json.cMakefile.mesh mesh/cfgmod-server.c mesh/mesh-config-json.c +4 more+6 -90 replies
3/10mesh: Change mesh_db prefix to mesh_configmesh/cfgmod-server.c mesh/mesh-config-json.c mesh/mesh-config.h +3 more+234 -2150 replies
4/10mesh: Move load from storage functionality into node.cmesh/mesh-config-json.c mesh/mesh-config.h mesh/node.c +1 more+215 -2000 replies
5/10mesh: Confine dependency on json-c to mesh-config-json.cmesh/cfgmod-server.c mesh/mesh-config-json.c mesh/mesh-config.h +5 more+525 -3840 replies
6/10mesh: Replace storage_save_config with mesh_config_save_configmesh/mesh-config-json.c mesh/mesh-config.h mesh/node.c +2 more+84 -850 replies
7/10mesh: Use mesh_config APIs to store node configurationmesh/appkey.c mesh/cfgmod-server.c mesh/mesh-config-json.c +6 more+155 -3400 replies
8/10mesh: Manage node config directory in mesh-configMakefile.mesh mesh/cfgmod-server.c mesh/mesh-config-json.c +10 more+255 -3540 replies
9/10mesh: Create or re-use a node storage directory for keyringmesh/keyring.c mesh/node.c mesh/node.h+51 -290 replies
10/10mesh: Rename mesh_config_srv_init() to cfgmod_server_init()mesh/cfgmod-server.c mesh/cfgmod.h mesh/node.c+4 -40 replies

Reviews trailers per patch

None of the 10 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchMichał Lowas-Rzechonek
SeriesR-b
1/10
2/10
3/10
4/10
5/10
6/10
7/10
8/10
9/10
10/10

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH BlueZ 00/10 v3] mesh: Configuration storage re-org

+ rebase off the tip

This set of patches introduces the notion of generic mesh-config API that allows the daemon to be agnostic of the underlying node configuration directory layout and the format of the file(s) in which node configuration is saved.

Currently, the daemon supports only JSON-based configuration format. It is expected that other configuration formats may be added in future.

As a result of these changes, storage.c and storage.h are obsolete and are removed.

Inga Stotland (10):
mesh: Move network config setup from storage.c to node.c
mesh: Rename mesh-db.c to mesh-config-json.c
mesh: Change mesh_db prefix to mesh_config
mesh: Move load from storage functionality into node.c
mesh: Confine dependency on json-c to mesh-config-json.c
mesh: Replace storage_save_config with mesh_config_save_config
mesh: Use mesh_config APIs to store node configuration
mesh: Manage node config directory in mesh-config
mesh: Create or re-use a node storage directory for keyring
mesh: Rename mesh_config_srv_init() to cfgmod_server_init()

 Makefile.mesh                          |    3 +-
 mesh/appkey.c                          |   19 +-
 mesh/cfgmod-server.c                   |   31 +-
 mesh/cfgmod.h                          |    2 +-
 mesh/keyring.c                         |   36 +-
 mesh/{mesh-db.c => mesh-config-json.c} | 1071 +++++++++++++++++-------
 mesh/mesh-config.h                     |  172 ++++
 mesh/mesh-db.h                         |  157 ----
 mesh/mesh.c                            |   15 +-
 mesh/mesh.h                            |    1 +
 mesh/model.c                           |   23 +-
 mesh/net.c                             |   26 +-
 mesh/node.c                            |  224 +++--
 mesh/node.h                            |   13 +-
 mesh/storage.c                         |  656 ---------------
 mesh/storage.h                         |   51 --
 mesh/util.c                            |   39 +-
 mesh/util.h                            |    1 +
 18 files changed, 1219 insertions(+), 1321 deletions(-)
 rename mesh/{mesh-db.c => mesh-config-json.c} (58%)
 create mode 100644 mesh/mesh-config.h
 delete mode 100644 mesh/mesh-db.h
 delete mode 100644 mesh/storage.c
 delete mode 100644 mesh/storage.h
Signature · 1 line
2.21.0