diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2017-03-24 17:52:48 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2017-03-31 13:57:56 +0200 |
commit | b8b5e7b00247eeeb8e09e98c8360c8440067a095 (patch) | |
tree | e2cf57f538cf25776719af513f20a40be8d1a5f2 | |
parent | 9d07a05275b4d4935b78b29883e9401ba3f79cb8 (diff) | |
download | dt-utils-b8b5e7b00247eeeb8e09e98c8360c8440067a095.tar.gz dt-utils-b8b5e7b00247eeeb8e09e98c8360c8440067a095.tar.xz |
state: backend bucket circular: Explain metadata
Explain why we have metadata and where it is used.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r-- | src/barebox-state/backend_bucket_circular.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/barebox-state/backend_bucket_circular.c b/src/barebox-state/backend_bucket_circular.c index 5a525f6..d99ba39 100644 --- a/src/barebox-state/backend_bucket_circular.c +++ b/src/barebox-state/backend_bucket_circular.c @@ -61,6 +61,11 @@ struct state_backend_storage_bucket_circular { struct device_d *dev; }; +/* + * The metadata will be written directly before writesize aligned offsets. + * When searching backwards through the pages it allows us to find the + * beginning of the data. + */ struct __attribute__((__packed__)) state_backend_storage_bucket_circular_meta { uint32_t magic; uint32_t written_length; |