[PATCH v2 0/3] state: add support for pre-mainline state format

Uwe Kleine-König u.kleine-koenig at pengutronix.de
Thu Sep 28 02:03:26 PDT 2017


Hello,

when the state framework was developed the underlying raw format was
simpler (only one checksum and no length) and no meta data for direct
buckets.

To be able to keep the binary representation with the current state
framework this patch series introduces the old "raw" format as
"rawcompat" and teaches the direct bucket backend to skip writing meta
data in some cases.

This is v2 of the series, compared to v1 this also updates the
documentation.

Best regards
Uwe

Uwe Kleine-König (3):
  Documentation: state: adapt description to reality
  state: new backend format "rawcompat"
  state: storage: direct: skip writing meta data if this makes data fit

 .../devicetree/bindings/barebox/barebox,state.rst  |  25 ++--
 common/state/Makefile                              |   1 +
 common/state/backend_bucket_direct.c               |  23 +++-
 common/state/backend_format_rawcompat.c            | 145 +++++++++++++++++++++
 common/state/state.c                               |   3 +
 common/state/state.h                               |   2 +
 6 files changed, 183 insertions(+), 16 deletions(-)
 create mode 100644 common/state/backend_format_rawcompat.c

-- 
2.11.0




More information about the barebox mailing list