mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 0/2] state: add support for pre-mainline state format
@ 2017-09-26 20:58 Uwe Kleine-König
  2017-09-26 20:58 ` [PATCH 1/2] state: new backend format "rawcompat" Uwe Kleine-König
  2017-09-26 20:58 ` [PATCH 2/2] state: storage: direct: skip writing meta data if this makes data fit Uwe Kleine-König
  0 siblings, 2 replies; 3+ messages in thread
From: Uwe Kleine-König @ 2017-09-26 20:58 UTC (permalink / raw)
  To: barebox

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.

Best regards
Uwe

Uwe Kleine-König (2):
  state: new backend format "rawcompat"
  state: storage: direct: skip writing meta data if this makes data fit

 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 +
 5 files changed, 167 insertions(+), 7 deletions(-)
 create mode 100644 common/state/backend_format_rawcompat.c

-- 
2.11.0


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-09-26 20:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-26 20:58 [PATCH 0/2] state: add support for pre-mainline state format Uwe Kleine-König
2017-09-26 20:58 ` [PATCH 1/2] state: new backend format "rawcompat" Uwe Kleine-König
2017-09-26 20:58 ` [PATCH 2/2] state: storage: direct: skip writing meta data if this makes data fit Uwe Kleine-König

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox